mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-24 01:13:21 +00:00
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.
9 lines
233 B
Ruby
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
|