Feature #19589
Add an option to create plugin migrations with properly marked scope
Difficulty:
Triaged:
Description
We want to mark every newly created migration with a scope that will indicate the plugin that this migration came from.
This will enable later on to rollback/migrate only migrations that belong to a certain plugin.
Related issues
Associated revisions
refs #19589 - ensure that foreman starts in production
this avoids the following error in production (under passenger):
Message from application: uninitialized constant Generators::Base (NameError)
lib/generators/plugin/migration_generator.rb:2:in `<module:Plugin>'
lib/generators/plugin/migration_generator.rb:1:in `<top (required)>
History
#1
Updated by Shimon Shtein almost 6 years ago
- Blocks Tracker #19454: Mark plugin migrations to be able to run them separately for each plugin. added
#2
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4509 added
#3
Updated by Shimon Shtein almost 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset fb57b8b09dfb3c968e1e5819e1a332c8eee3ea88.
#4
Updated by Marek Hulán almost 6 years ago
- Legacy Backlogs Release (now unused) set to 240
#5
Updated by The Foreman Bot almost 6 years ago
- Pull request https://github.com/theforeman/foreman/pull/4571 added
Fixes #19589 - Added plugin migration generator
Now plugin creators would be able to generate migrations by invoking
``` sh
rails g plugin:migration <migration name and options> --plugin_name=my_plugin
```