Rename create_migration method in generator for Rails 4
Rails 4 already has a create_migration method in Rails::Generators::Migration.master
parent
3a441d2c0c
commit
31ba046295
|
@ -7,7 +7,7 @@ class TheModerator::InstallGenerator < Rails::Generators::Base
|
|||
template 'moderation.rb', File.join('app', 'models', 'moderation.rb')
|
||||
end
|
||||
|
||||
def create_migration
|
||||
def create_migration_file
|
||||
migration_template 'migration.rb', 'db/migrate/create_moderations.rb'
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue