summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-08-23 09:39:02 +0000
committerGo MAEDA <maeda@farend.jp>2023-08-23 09:39:02 +0000
commit6653f60d7454aa927840eced55b20bde77adbc16 (patch)
treed1666f3b0658a7059c74691c2aa53f7d5e3fdee0 /lib
parent59476a88f66189e3fd09d4be3308330a9ee61270 (diff)
downloadredmine-6653f60d7454aa927840eced55b20bde77adbc16.tar.gz
redmine-6653f60d7454aa927840eced55b20bde77adbc16.zip
Generate snake-case file name by redmine_plugin_migration (#38730).
Patch by Haruka Asakura. git-svn-id: https://svn.redmine.org/redmine/trunk@22282 e93f8b46-1217-0410-a6f0-8f06a7374b81
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