README.md in strong_migrations-0.7.7 vs README.md in strong_migrations-0.7.8

- old
+ new

@@ -816,14 +816,18 @@ StrongMigrations.auto_analyze = true ``` ## Faster Migrations -Only dump the schema when adding a new migration. If you use Git, create an initializer with: +Only dump the schema when adding a new migration. If you use Git, add to the end of your `Rakefile`: -```ruby -ActiveRecord::Base.dump_schema_after_migration = Rails.env.development? && - `git status db/migrate/ --porcelain`.present? +```rb +task :faster_migrations do + ActiveRecord::Base.dump_schema_after_migration = Rails.env.development? && + `git status db/migrate/ --porcelain`.present? +end + +task "db:migrate": "faster_migrations" ``` ## 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/12/alphabetize-schema-rb-columns/). Add to the end of your `Rakefile`: