lib/generators/strong_migrations/templates/initializer.rb.tt in strong_migrations-0.7.3 vs lib/generators/strong_migrations/templates/initializer.rb.tt in strong_migrations-0.7.4

- old
+ new

@@ -1,10 +1,9 @@ # Mark existing migrations as safe StrongMigrations.start_after = <%= start_after %> -# Set timeouts for migrations -# If you use PgBouncer in transaction mode, delete these lines and set timeouts on the database user +# Set timeouts for migrations<%= pgbouncer_message %> StrongMigrations.lock_timeout = 10.seconds StrongMigrations.statement_timeout = 1.hour # Analyze tables after indexes are added # Outdated statistics can sometimes hurt performance @@ -17,6 +16,10 @@ # 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 -# end +# end<% if postgresql? %> + +# Make some operations safe by default +# See https://github.com/ankane/strong_migrations#safe-by-default +# StrongMigrations.safe_by_default = true<% end %>