Remove strong_migrations gem for now

This commit is contained in:
Eugene Burmakin 2025-11-07 20:18:56 +01:00
parent b272c7407f
commit f48a512b10
3 changed files with 23 additions and 26 deletions

View file

@ -48,7 +48,7 @@ gem 'sidekiq-limit_fetch'
gem 'sprockets-rails' gem 'sprockets-rails'
gem 'stackprof' gem 'stackprof'
gem 'stimulus-rails' gem 'stimulus-rails'
gem 'strong_migrations', '>= 2.4.0' # gem 'strong_migrations', '>= 2.4.0'
gem 'tailwindcss-rails', '= 3.3.2' gem 'tailwindcss-rails', '= 3.3.2'
gem 'turbo-rails', '>= 2.0.17' gem 'turbo-rails', '>= 2.0.17'
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]

View file

@ -486,8 +486,6 @@ GEM
stimulus-rails (1.3.4) stimulus-rails (1.3.4)
railties (>= 6.0.0) railties (>= 6.0.0)
stringio (3.1.7) stringio (3.1.7)
strong_migrations (2.5.1)
activerecord (>= 7.1)
super_diff (0.17.0) super_diff (0.17.0)
attr_extras (>= 6.2.4) attr_extras (>= 6.2.4)
diff-lcs diff-lcs
@ -600,7 +598,6 @@ DEPENDENCIES
sprockets-rails sprockets-rails
stackprof stackprof
stimulus-rails stimulus-rails
strong_migrations (>= 2.4.0)
super_diff super_diff
tailwindcss-rails (= 3.3.2) tailwindcss-rails (= 3.3.2)
turbo-rails (>= 2.0.17) turbo-rails (>= 2.0.17)

View file

@ -1,27 +1,27 @@
# Mark existing migrations as safe # # Mark existing migrations as safe
StrongMigrations.start_after = 20_250_122_150_500 # StrongMigrations.start_after = 20_250_122_150_500
# Set timeouts for migrations # # Set timeouts for migrations
# PgBouncer in transaction mode doesn't support SET commands # # PgBouncer in transaction mode doesn't support SET commands
# Timeouts should be set on the database user instead # # Timeouts should be set on the database user instead
# StrongMigrations.lock_timeout = 10.seconds # # StrongMigrations.lock_timeout = 10.seconds
# StrongMigrations.statement_timeout = 1.hour # # StrongMigrations.statement_timeout = 1.hour
# Analyze tables after indexes are added # # Analyze tables after indexes are added
# Outdated statistics can sometimes hurt performance # # Outdated statistics can sometimes hurt performance
StrongMigrations.auto_analyze = true # StrongMigrations.auto_analyze = true
# Set the version of the production database # # Set the version of the production database
# so the right checks are run in development # # so the right checks are run in development
# StrongMigrations.target_version = 10 # # StrongMigrations.target_version = 10
# Add custom checks # # Add custom checks
# StrongMigrations.add_check do |method, args| # # StrongMigrations.add_check do |method, args|
# if method == :add_index && args[0].to_s == "users" # # if method == :add_index && args[0].to_s == "users"
# stop! "No more indexes on the users table" # # stop! "No more indexes on the users table"
# end # # end
# end # # end
# Make some operations safe by default # # Make some operations safe by default
# See https://github.com/ankane/strong_migrations#safe-by-default # # See https://github.com/ankane/strong_migrations#safe-by-default
# StrongMigrations.safe_by_default = true # # StrongMigrations.safe_by_default = true