small medium large xlarge

14 May 2010, 21:16
Csaba Nemeth (5 posts)

Quick question: instead of rerunning the migrations (which could be messy), why not use

rake db:schema:load


to recreate the database?

Thanks, Csaba

15 May 2010, 11:50
Sam Ruby (633 posts)

Based on errata 43200, I’m considering replacing both steps with

rake db:setup RAILS_ENV=production

My current leanings are to leave the creation of the database as a separate step, and add instructions to GRANT ALL PRIVILEGES ON depot_deployment.* TO 'username'@'localhost' IDENTIFIED BY 'password';.

You must be logged in to comment