README.md in strong_migrations-0.1.2 vs README.md in strong_migrations-0.1.3
- old
+ new
@@ -29,11 +29,11 @@
- [Rails Migrations with No Downtime](http://pedro.herokuapp.com/past/2011/7/13/rails_migrations_with_no_downtime/)
- [Safe Operations For High Volume PostgreSQL](https://www.braintreepayments.com/blog/safe-operations-for-high-volume-postgresql/) (if it’s relevant)
Also checks for best practices:
-- keeping indexes under three columns
+- keeping indexes to three columns or less
## The Zero Downtime Way
### Adding a column with a default value
@@ -131,9 +131,17 @@
class MySafeMigration < ActiveRecord::Migration
def change
safety_assured { remove_column :users, :some_column }
end
end
+```
+
+## Production
+
+Dangerous rake tasks are disabled in production - `db:drop`, `db:reset`, `db:schema:load`, and `db:structure:load`. To get around this, use:
+
+```sh
+SAFETY_ASSURED=1 rake db:drop
```
## Credits
Thanks to Bob Remeika and David Waller for the [original code](https://github.com/foobarfighter/safe-migrations).