Project

General

Profile

Feature #19589

Add an option to create plugin migrations with properly marked scope

Added by Shimon Shtein over 1 year ago. Updated 2 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugins-Engines
Target version:
Team Backlog:
Fixed in Releases:
Found in Releases:

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

Blocks Foreman - Tracker #19454: Mark plugin migrations to be able to run them separately for each plugin.Assigned2017-05-03

Associated revisions

Revision fb57b8b0 (diff)
Added by Shimon Shtein over 1 year ago

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

```

Revision 13b42253 (diff)
Added by Ohad Levy over 1 year ago

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 over 1 year ago

  • Blocks Tracker #19454: Mark plugin migrations to be able to run them separately for each plugin. added

#2 Updated by The Foreman Bot over 1 year ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4509 added

#3 Updated by Shimon Shtein over 1 year ago

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

#4 Updated by Marek Hulán over 1 year ago

  • Legacy Backlogs Release (now unused) set to 240

#5 Updated by The Foreman Bot over 1 year ago

  • Pull request https://github.com/theforeman/foreman/pull/4571 added

Also available in: Atom PDF