From fe3d4d7e0c911b7e19d2726f9b9ff66b26eebc29 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 2 Aug 2017 16:52:46 +0000 Subject: Set migration version in the plugin migration template (#26610). git-svn-id: http://svn.redmine.org/redmine/trunk@16945 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/generators/redmine_plugin_model/templates/migration.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/generators/redmine_plugin_model') 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| -%> -- cgit v1.2.3