RailsApps / rails3-devise-rspec-cucumber

An example Rails 3.2 app with Devise and RSpec and Cucumber.
http://railsapps.github.io/
445 stars 144 forks source link

first migration #35

Closed lothar59 closed 12 years ago

lothar59 commented 12 years ago

The first migration from devise is change_table but we didn't create the table yet. shouldn't that be create_table instead ?

DanielKehoe commented 12 years ago

We use the Devise generator which creates a User table. So we can use change table to add a user name. Are you using the tutorial? It says "Devise created a migration file to establish the schema for the SQLite database with a migration file named something like db/migrate/xxxxxxx_devise_create_users.rb. We won’t modify the migration file. Instead we’ll add an additional migration that adds the “name” field to the User record."

Perhaps I need to explain more in the tutorial? Let me know if you think additional clarity would be helpful.

lothar59 commented 12 years ago

Hi Daniel, yes i didn't remember about the command for devise to create the user table so i just changed my migration and it worked fine.

Thanks for your answer

DanielKehoe commented 12 years ago

Glad you sorted it out.

lothar59 commented 12 years ago

Thank you you for this awesome project.