about summary refs log tree commit diff
path: root/db/migrate/20161205214545_add_suspended_to_accounts.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2021-07-07 21:13:30 +0200
committerGitHub <noreply@github.com>2021-07-07 21:13:30 +0200
commit8569126c2e52cdde6dba2dd86c9a8e802b0c5e4c (patch)
tree10f0d9871e363943e7397be2413566b25f668980 /db/migrate/20161205214545_add_suspended_to_accounts.rb
parente2844b7e58e1ebdf666c5fecc97a75620da7bddf (diff)
Fix upgrade path from 3.4.0 (#16465)
3.4.1 dropped account_stats.lock_version, but in a way breaking the usual
upgrade path by requiring services to be reloaded after the post-migrations.

Indeed, `self.locking_column = nil` was not enough for Rails to ignore the
`lock_version` column when preparing statements on application load, resulting
in some ActiveRecord queries (typically those involving
`includes(:account_stat)`) erroring out with:

  ActiveRecord::StatementInvalid (PG::UndefinedColumn: ERROR:  column account_stats.lock_version does not exist
Diffstat (limited to 'db/migrate/20161205214545_add_suspended_to_accounts.rb')
0 files changed, 0 insertions, 0 deletions