Files
openfoodnetwork/db/migrate/20230117043628_enable_stats_extension.rb
Maikel Linke 4364b1283b Enable pg_stat_statements in development like prod
We activated this database extension in production via ofn-install. But
this had not been reflected in Rails' schema.rb.

This change avoids inconsistent db/schema.rb files on production servers
and makes development more similar to production.
2023-01-17 15:41:35 +11:00

9 lines
233 B
Ruby

# frozen_string_literal: true
class EnableStatsExtension < ActiveRecord::Migration[6.1]
def change
# Most production servers have this already. Enabling twice isn't harmful.
enable_extension "pg_stat_statements"
end
end