You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 17, 2018. It is now read-only.
Subsequently calling rake db:migrate is no problem. However, now when we run rake db:setup && rake db:migrate again after deleting our database we get the following error:
duplicate column name: prop2
This because auto_migrate! in rake db:setup already created the column for :prop2.
Given an initial model
Foo:We perform a
rake db:setup && rake db:migrateand all is fine. Now later in development we add a newproperty to our column
:prop2.We write a migration for this that reads as follows:
Subsequently calling
rake db:migrateis no problem. However, now when we runrake db:setup && rake db:migrateagain after deleting our database we get the following error:This because auto_migrate! in
rake db:setupalready created the column for:prop2.What to do about this?