summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/generators/redmine_plugin_migration/redmine_plugin_migration_generator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/generators/redmine_plugin_migration/redmine_plugin_migration_generator.rb b/lib/generators/redmine_plugin_migration/redmine_plugin_migration_generator.rb
index 83f9b5e69..c0cd32676 100644
--- a/lib/generators/redmine_plugin_migration/redmine_plugin_migration_generator.rb
+++ b/lib/generators/redmine_plugin_migration/redmine_plugin_migration_generator.rb
@@ -34,6 +34,6 @@ class RedminePluginMigrationGenerator < Rails::Generators::NamedBase
plugin_name = file_name.underscore
plugin_path = File.join(Redmine::Plugin.directory, plugin_name)
migration_template "migration.rb",
- "#{plugin_path}/db/migrate/#{@migration}.rb"
+ "#{plugin_path}/db/migrate/#{@migration.underscore}.rb"
end
end