diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-08-02 16:52:46 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2017-08-02 16:52:46 +0000 |
commit | fe3d4d7e0c911b7e19d2726f9b9ff66b26eebc29 (patch) | |
tree | e9d5e1333fea8880720b173576772ef666b9180d /lib/generators/redmine_plugin_model | |
parent | 9f9f7993e62248f962d360dc751e43bbf841123c (diff) | |
download | redmine-fe3d4d7e0c911b7e19d2726f9b9ff66b26eebc29.tar.gz redmine-fe3d4d7e0c911b7e19d2726f9b9ff66b26eebc29.zip |
Set migration version in the plugin migration template (#26610).
git-svn-id: http://svn.redmine.org/redmine/trunk@16945 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/generators/redmine_plugin_model')
-rw-r--r-- | lib/generators/redmine_plugin_model/templates/migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/redmine_plugin_model/templates/migration.rb b/lib/generators/redmine_plugin_model/templates/migration.rb index f5026aebf..19f9302ab 100644 --- a/lib/generators/redmine_plugin_model/templates/migration.rb +++ b/lib/generators/redmine_plugin_model/templates/migration.rb @@ -1,4 +1,4 @@ -class <%= @migration_class_name %> < ActiveRecord::Migration +class <%= @migration_class_name %> < ActiveRecord::Migration[<%= ActiveRecord::Migration.current_version %>] def change create_table :<%= @table_name %> do |t| <% attributes.each do |attribute| -%> |