Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

Commit 27aa74b

Browse files
authored
Merge pull request #725 from alphagov/enable-enumerate-columns-setting
Prevent ActiveRecord errors when adding columns
2 parents aa5aa58 + b3c25c8 commit 27aa74b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

config/application.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,5 +67,8 @@ class Application < Rails::Application
6767
h[:trace_id] = event.payload[:trace_id] if event.payload[:trace_id]
6868
end
6969
end
70+
71+
# Prevent ActiveRecord::PreparedStatementCacheExpired errors when adding columns
72+
config.active_record.enumerate_columns_in_select_statements = true
7073
end
7174
end

0 commit comments

Comments
 (0)