From 31ba046295946cff14d59b7c9cf7967ff39fe2bc Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Thu, 7 Aug 2014 17:39:36 +0200 Subject: [PATCH] Rename create_migration method in generator for Rails 4 Rails 4 already has a create_migration method in Rails::Generators::Migration. --- lib/generators/the_moderator/install/install_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/generators/the_moderator/install/install_generator.rb b/lib/generators/the_moderator/install/install_generator.rb index f1cea3f..32fd553 100644 --- a/lib/generators/the_moderator/install/install_generator.rb +++ b/lib/generators/the_moderator/install/install_generator.rb @@ -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