Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Commit

Permalink
Fix migration generator for >= 4.1
Browse files Browse the repository at this point in the history
`create_migration` method is reserved

More details is here: muratguzel/letsrate#76 (comment)
  • Loading branch information
dmitry committed Oct 24, 2015
1 parent f552ebc commit dd8a552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/generators/translation_for_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def create_model
template 'model.rb.erb', File.join('app/models', class_path, "#{file_name}.rb")
end

def create_migration
def create_translations_migration
migration_template 'migration.rb.erb', "db/migrate/create_#{table_name}"
end

Expand Down

0 comments on commit dd8a552

Please sign in to comment.