Sha256: 9e7889972ec29548499cd01ad87bd0cf7f987fbeb6bb7b51284051dcc08ae2eb
Contents?: true
Size: 599 Bytes
Versions: 1
Compression:
Stored size: 599 Bytes
Contents
# Mark existing migrations as safe StrongMigrations.start_after = <%= start_after %> # Set timeouts # If you use PgBouncer in transaction mode, delete these lines and set timeouts on the database user StrongMigrations.lock_timeout = 10.seconds StrongMigrations.statement_timeout = 1.hour # Analyze tables automatically (to update planner statistics) after an index is added StrongMigrations.auto_analyze = true # 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
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strong_migrations-0.6.6 | lib/generators/strong_migrations/templates/initializer.rb.tt |