From 94dcc19e992433be34a5c8643b88632c0bcb0738 Mon Sep 17 00:00:00 2001 From: Jack Turnbull Date: Tue, 23 Sep 2014 14:09:39 +0100 Subject: [PATCH] Add file extension to ActiveRecord generator --- .../active_record/two_factor_authentication_generator.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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