lib/generators/strong_migrations/templates/initializer.rb.tt in strong_migrations-0.7.0 vs lib/generators/strong_migrations/templates/initializer.rb.tt in strong_migrations-0.7.1

- old
+ new

@@ -8,9 +8,13 @@ # Analyze tables after indexes are added # Outdated statistics can sometimes hurt performance StrongMigrations.auto_analyze = true +# Set the version of the production database +# so the right checks are run in development +# StrongMigrations.target_version = <%= target_version %> + # Add custom checks # StrongMigrations.add_check do |method, args| # if method == :add_index && args[0].to_s == "users" # stop! "No more indexes on the users table" # end