Sha256: 15758380b0e06e6a30c37c5b8d0c0aad687680a7e48f380de190e84ffd0c1728

Contents?: true

Size: 622 Bytes

Versions: 3

Compression:

Stored size: 622 Bytes

Contents

# 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
StrongMigrations.lock_timeout = 10.seconds
StrongMigrations.statement_timeout = 1.hour

# Analyze tables after indexes are added
# Outdated statistics can sometimes hurt performance
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

3 entries across 3 versions & 1 rubygems

Version Path
strong_migrations-0.7.0 lib/generators/strong_migrations/templates/initializer.rb.tt
strong_migrations-0.6.8 lib/generators/strong_migrations/templates/initializer.rb.tt
strong_migrations-0.6.7 lib/generators/strong_migrations/templates/initializer.rb.tt