Ruby migrations example without Rails
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
db/migrate
.gitignore
Gemfile
Gemfile.lock
README
Rakefile
database.yml

README

Change credentials in database.yml file appropriately

$ rvm 1.9.2
$ rvm gemset create ruby_migrations_example
$ rvm gemset use ruby_migrations_example
$ bundle

$ mysql -e "create database test_database"

$ rake db:migrate
$ mysql test_database
$ describe products;
$ select * from products;