i try this to tap into the terminal :
rails generate migration AddUserIdToMytimes user_id:integer
–> create
db:migrate
–> — add_column(:mytimes, :user_id, :integer)
rake aborted!
An error has occurred, this and all later migrations canceled:
SQLite3::SQLException: duplicate column name: user_id: ALTER TABLE “mytimes” ADD “user_id” integer
What could ill do?
Seems like your
Mytimemodel already haveuser_idfield.What could you do? Remove this migration as unnecessary?