HomeContact
Computerz
Ruby on Rails DB cheat sheet
René Dohmen
June 25, 2014
1 min

As I started to do some development in Ruby here is a quick cheat sheet with some handy DB stuff.

One of the things that annoys most RoR users is that depending on how many Ruby environments you have on your comp you sometime can run ‘rake db:migrate’ but if you have multiple ruby’s you need to prefix that with bundle exec; e.g. bundle exec rake db:migrate. To be on the save side I prepend it in all the following examples.

After a migration:

Migrate your DB to the last version as indicated in the src.

On heroku:

When one wants to repopulate DB and make the test environment ready:

Tips

You can stack items:


Related Posts

Working with git submodules
October 15, 2023
3 min
© 2024, All Rights Reserved.
Powered by formatics

Quick Links

Advertise with usAbout UsContact Us

Social Media