mysql - <timestamp>_add_devise_to_users.rb created instead of <timestamp>_devise_create_users.rb -


i absolute new ruby on rails , running following command $rails generate devise user

i expected file _devise_create_users.rb generated . generating file _add_devise_to_users.rb. when run command rake db:migrate after this, gives me error , sqlite3::sqlexception: no such table: users: alter table "users" add "email" varchar default '' not null. since there no user table created.

any headways suggested ?

i believe need capitalize user

rails generate devise user 

make sure rollback mistakes made db in prior attempts.


Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -