Project

General

Profile

Feature #19589

Add an option to create plugin migrations with properly marked scope

Added by Shimon Shtein almost 6 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Plugin integration
Target version:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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 almost 6 years 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 almost 6 years 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 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

#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

Also available in: Atom PDF