diff --git a/lib/generators/active_record/two_factor_authentication_generator.rb b/lib/generators/active_record/two_factor_authentication_generator.rb index 0fd4289..3656777 100644 --- a/lib/generators/active_record/two_factor_authentication_generator.rb +++ b/lib/generators/active_record/two_factor_authentication_generator.rb @@ -6,7 +6,7 @@ module ActiveRecord source_root File.expand_path("../templates", __FILE__) def copy_two_factor_authentication_migration - migration_template "migration.rb", "db/migrate/two_factor_authentication_add_to_#{table_name}" + migration_template "migration.rb", "db/migrate/two_factor_authentication_add_to_#{table_name}.rb" end end