README.md in strong_migrations-0.1.5 vs README.md in strong_migrations-0.1.6
- old
+ new
@@ -147,10 +147,10 @@
Only dump the schema when adding a new migration. If you use Git, create an initializer with:
```ruby
ActiveRecord::Base.dump_schema_after_migration = Rails.env.development? &&
- !`git status db/migrate/`.include?("working directory clean")
+ `git status db/migrate/ --porcelain`.present?
```
## Schema Sanity
Columns can flip order in `db/schema.rb` when you have multiple developers. One way to prevent this is to [alphabetize them](https://www.pgrs.net/2008/03/13/alphabetize-schema-rb-columns/). Add to the end of your `Rakefile`: