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

rails g two_factor_authentication MODEL does not append .rb to end of migration #40

Closed
jackturnbull opened this issue Sep 22, 2014 · 0 comments · Fixed by #41
Closed

Comments

@jackturnbull
Copy link
Contributor

Hi there,

I noticed today that the command:

bundle exec rails g two_factor_authentication MODEL

Does not seem to end the migtation in the .rb extension meaning that I had to add this manually before rake db:migrate would run the migration.

This is on Rails 4.1.5 and Devise 3.3.0

Not a huge issue I wouldn't suspect but you can replicate this in a new rails project by running the following commands:

rails new twofa
cd twofa
# Add 'devise' and 'two_factor_authentication' to Gemfile
bundle install
rails generate devise:install
rails generate devise User
rails g two_factor_authentication User

=>

➜  twofa  bundle exec rails g two_factor_authentication User
      insert  app/models/user.rb
      invoke  active_record
      create    db/migrate/20140922160755_two_factor_authentication_add_to_users
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant