summaryrefslogtreecommitdiffstats
path: root/lib/generators/redmine_plugin_model
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-11 14:17:57 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-12-11 14:17:57 +0000
commit792fbabecb0805b7bd0bf2538a9f9773506fb5a0 (patch)
tree5c283032456faac3024818028030486bd6b2593d /lib/generators/redmine_plugin_model
parent658e95afd244323bdb0256b4e6c137cd3cc50d9e (diff)
downloadredmine-792fbabecb0805b7bd0bf2538a9f9773506fb5a0.tar.gz
redmine-792fbabecb0805b7bd0bf2538a9f9773506fb5a0.zip
add empty line after guard clause to lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@20625 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/generators/redmine_plugin_model')
-rw-r--r--lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
index e9c5c1f1a..50d2fddcb 100644
--- a/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
+++ b/lib/generators/redmine_plugin_model/redmine_plugin_model_generator.rb
@@ -42,8 +42,8 @@ class RedminePluginModelGenerator < Rails::Generators::NamedBase
def copy_templates
template 'model.rb.erb', "#{plugin_path}/app/models/#{model.underscore}.rb"
template 'unit_test.rb.erb', "#{plugin_path}/test/unit/#{model.underscore}_test.rb"
-
return unless options[:migration]
+
migration_filename = "%.14d_#{@migration_filename}.rb" % migration_number
template "migration.rb", "#{plugin_path}/db/migrate/#{migration_filename}"
end