Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class TwoFactorAuthenticationGenerator < ActiveRecord::Generators::Base
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}.rb"
migration_template "migration.rb", "db/migrate/add_two_factor_authentication_to_#{table_name}.rb"
end

end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
end

describe 'the migration' do
subject { migration_file('db/migrate/two_factor_authentication_add_to_users.rb') }
subject { migration_file('db/migrate/add_two_factor_authentication_to_users.rb') }

it { is_expected.to exist }
it { is_expected.to be_a_migration }
Expand Down