Rails

Rails Accidentally Setup Development Databases On Production

Posted by Weston Ganger on April 27, 2014

If you accidentally setup development databases to production (by running rake db:setup)

To drop this database:

rake db:drop

To setup the database properly for production:

rake db:setup RAILS_ENV=production
rake db:migrate RAILS_ENV=production

Posted in Rails and Tagged with rails rake 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts