README.markdown in standalone_migrations-0.2.0 vs README.markdown in standalone_migrations-0.2.1

- old
+ new

@@ -5,17 +5,16 @@ Install Ruby, RubyGems and a ruby-database driver (e.g. `gem install mysql`) then: sudo gem install standalone_migrations Add to `Rakefile` in your projects base directory: begin - require 'standalone_migrations' - StandaloneMigrations.tasks + require 'tasks/standalone_migrations' rescue LoadError => e puts "gem install standalone_migrations to get db:migrate:* tasks! (Error: #{e})" end -Add database configuration to `config/database.yml` in your projects base directory e.g.: +Add database configuration to `db/config.yml` in your projects base directory e.g.: development: adapter: mysql encoding: utf8 reconnect: false database: somedatabase_dev @@ -28,11 +27,11 @@ ...something similar... ### To create a new database migration: rake db:new_migration name=FooBarMigration - edit migrations/20081220234130_foo_bar_migration.rb + edit db/migrations/20081220234130_foo_bar_migration.rb ... and fill in the up and down migrations [Cheatsheet](http://dizzy.co.uk/ruby_on_rails/cheatsheets/rails-migrations). If you're lazy and want to just execute raw SQL: @@ -58,12 +57,18 @@ ### To execute a specific up/down of one single migration rake db:migrate:up VERSION=20081220234130 +### To overwrite the default options +[Possible options](http://github.com/thuss/standalone-migrations/blob/master/tasks/standalone_migrations.rake) + MIGRATION_OPTIONS = {:config=>'database/config.yml', ... } + gem 'standalone_migrations' + require 'tasks/standalone_migrations' + Contributors ============ This work is based on [Lincoln Stoll's blog post](http://lstoll.net/2008/04/stand-alone-activerecord-migrations/) and [David Welton's post](http://journal.dedasys.com/2007/01/28/using-migrations-outside-of-rails). - [Todd Huss](http://gabrito.com/) - [Michael Grosser](http://pragmatig.wordpress.com) - - [Steve Hodgkiss](http://stevehodgkiss.com/)`s [activerecord-migrator-standalone](http://github.com/stevehodgkiss/activerecord-migrator-standalone) + - [Steve Hodgkiss](http://stevehodgkiss.com/)`s [activerecord-migrator-standalone](http://github.com/stevehodgkiss/activerecord-migrator-standalone) \ No newline at end of file