Useful Rake commands

Rake is the make for Ruby 🙂

Here is a pretty good introduction to the migrations in Ruby on Rails:

http://guides.rubyonrails.org/migrations.html

and here some useful commands:

rake -T

shows all rake targets. To create a schema.rb from the current database exeute

rake db:schema:dump

to load the schema.rb into the database execute:

rake db:schema:load

Published by Robert Reiz

CEO @ VersionEye. Passionated software developer since 1998.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: