README.markdown in standalone_migrations-0.3.0 vs README.markdown in standalone_migrations-0.4.0
- old
+ new
@@ -21,21 +21,30 @@
puts "gem install standalone_migrations to get db:migrate:* tasks! (Error: #{e})"
end
Add database configuration to `db/config.yml` in your projects base directory e.g.:
development:
+ adapter: sqlite3
+ database: db/development.sqlite3
+ pool: 5
+ timeout: 5000
+
+ production:
adapter: mysql
encoding: utf8
reconnect: false
database: somedatabase_dev
pool: 5
username: root
password:
socket: /var/run/mysqld/mysqld.sock
- test:
- ...something similar...
+ test: &test
+ adapter: sqlite3
+ database: db/test.sqlite3
+ pool: 5
+ timeout: 5000
### To create a new database migration:
rake db:new_migration name=FooBarMigration
edit db/migrations/20081220234130_foo_bar_migration.rb
@@ -60,25 +69,21 @@
rake db:migrate VERSION=20081220234130
### To migrate a specific database (for example your "testing" database)
- rake db:migrate RAILS_ENV=test
+ rake db:migrate DB=test
### 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)
- [Eric Lindvall](http://bitmonkey.net)
- - [Steve Hodgkiss](http://stevehodgkiss.com/)`s [activerecord-migrator-standalone](http://github.com/stevehodgkiss/activerecord-migrator-standalone)
+ - [Steve Hodgkiss](http://stevehodgkiss.com/)
+ - [Rich Meyers](https://github.com/richmeyers)
+ - [Wes Bailey](http://exposinggotchas.blogspot.com/)
\ No newline at end of file