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