dbmigrate

Can't migrate database after scaffold. Section 2.2 Ruby on Rails Tutorial Michael Hartl

不羁岁月 提交于 2019-11-26 14:35:39
I'm working through the Hartl ruby on rails tutorial (section 2.2), and I'm having trouble migrating the database. Everything seemed to be working, and then I ran rails generate scaffold User name:string email:string Afterwards I tried to run bundle exec rake db:migrate and got the below error message: $ bundle exec rake db:migrate == 20141125234257 CreateUsers: migrating ====================================== -- create_table(:users) -> 0.0079s == 20141125234257 CreateUsers: migrated (0.0080s) ============================= rake aborted! StandardError: An error has occurred, this and all later

Can't migrate database after scaffold. Section 2.2 Ruby on Rails Tutorial Michael Hartl

浪子不回头ぞ 提交于 2019-11-26 03:57:02
问题 I\'m working through the Hartl ruby on rails tutorial (section 2.2), and I\'m having trouble migrating the database. Everything seemed to be working, and then I ran rails generate scaffold User name:string email:string Afterwards I tried to run bundle exec rake db:migrate and got the below error message: $ bundle exec rake db:migrate == 20141125234257 CreateUsers: migrating ====================================== -- create_table(:users) -> 0.0079s == 20141125234257 CreateUsers: migrated (0