Fulcrum: If you delete db/schema.rb and run "rake db:migrate", it fails

64 views
Skip to first unread message

Al

unread,
Mar 16, 2013, 3:49:59 PM3/16/13
to fulcru...@googlegroups.com
I ran "rake db:drop:all" and "rm db/schema.rb" then ran
"rake db:migrate" and it failed with multiple errors so

I restored db/schema.rb and ran "rake db:migrate" and
it finished the previous migrate.

FYI,
Al Snow

Malcolm Locke

unread,
Mar 16, 2013, 4:03:33 PM3/16/13
to fulcru...@googlegroups.com
Hi Al,

If you want to clobber your database and start again, run
`rake db:reset`. This will restore your database based on the content
of your db/schema.rb, which is faster and less error prone than running
db:migrate. You should not delete your db/schema.rb

Malc

Al

unread,
Mar 16, 2013, 5:26:26 PM3/16/13
to Fulcrum
Thanks for your answer - Al
Reply all
Reply to author
Forward
0 new messages