Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename migration filename so it reads like an action/verb #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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