README.markdown in standalone_migrations-2.0.0 vs README.markdown in standalone_migrations-2.0.1
- old
+ new
@@ -54,15 +54,15 @@
edit db/migrate/20081220234130_foo_bar_migration.rb
#### If you really want to, you can just execute raw SQL:
```ruby
-def self.up
+def up
execute "insert into foo values (123,'something');"
end
-def self.down
+def down
execute "delete from foo where field='something';"
end
```
### To apply your newest migration:
@@ -97,15 +97,15 @@
directory structure to work with, you can use a configuration file
named .standalone_migrations in the root of your project containing
the following:
```yaml
- db:
- seeds: db/seeds.rb
- migrate: db/migrate
- schema: db/schema.rb
- config:
- database: db/config.yml
+db:
+ seeds: db/seeds.rb
+ migrate: db/migrate
+ schema: db/schema.rb
+config:
+ database: db/config.yml
```
These are the configurable options available. You can omit any of
the keys and Standalone Migrations will assume the default values.