Project

General

Profile

Actions

Bug #17361

closed

`rake db:drop db:create db:migrate` doesn't migrate plugins

Added by Ivan Necas about 8 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Difficulty:
easy
Triaged:
Fixed in Releases:
Found in Releases:

Description

The core issue is in rails, where the migrations_paths get initialized before the rails environment,
when calling db:create, and it's not getting update later

https://github.com/rails/rails/blob/v5.0.0.1/activerecord/lib/active_record/railties/databases.rake#L16

Steps to reproduce

1. install a plugin
2. rake db:drop db:create db:migrate
3. notice the plugin migrations are not being run


Related issues 1 (0 open1 closed)

Blocks Foreman - Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasksClosedMarek Hulán07/22/2016Actions
Actions #1

Updated by Ivan Necas about 8 years ago

  • Blocks Feature #15779: Make report, puppet classes and environments importing asynchronous using foreman-tasks added
Actions #2

Updated by The Foreman Bot about 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-tasks/pull/215 added
Actions #3

Updated by Ivan Necas about 8 years ago

  • Project changed from foreman-tasks to Foreman
  • Subject changed from `rake db:drop db:create db:migrate` doesn't migrate tasks tables to `rake db:drop db:create db:migrate` doesn't migrate plugins
  • Description updated (diff)
  • Category set to Plugin integration
  • Status changed from Ready For Testing to Assigned
  • Pull request deleted (https://github.com/theforeman/foreman-tasks/pull/215)
Actions #4

Updated by The Foreman Bot about 8 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4027 added
Actions #5

Updated by Marek Hulán about 8 years ago

  • Translation missing: en.field_release set to 189
Actions #6

Updated by Ivan Necas about 8 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF