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

Also available in: Atom PDF