Install pg_stat_statements extension

This commit is contained in:
Manuel Bustillo 2025-01-22 21:29:13 +01:00
parent 598642a0db
commit 0c5162b326
2 changed files with 7 additions and 5 deletions

View File

@ -0,0 +1,5 @@
class EnablePgStatStatements < ActiveRecord::Migration[8.0]
def change
enable_extension 'pg_stat_statements'
end
end

7
db/schema.rb generated
View File

@ -1,7 +1,3 @@
# Copyright (C) 2024 Manuel Bustillo
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
# This file is auto-generated from the current state of the database. Instead # This file is auto-generated from the current state of the database. Instead
# of editing this file, please use the migrations feature of Active Record to # of editing this file, please use the migrations feature of Active Record to
# incrementally modify your database, and then regenerate this schema definition. # incrementally modify your database, and then regenerate this schema definition.
@ -14,9 +10,10 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2024_12_16_231415) do ActiveRecord::Schema[8.0].define(version: 2025_01_22_202836) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql" enable_extension "pg_catalog.plpgsql"
enable_extension "pg_stat_statements"
# Custom types defined in this database. # Custom types defined in this database.
# Note that some types may not work with other database engines. Be careful if changing database. # Note that some types may not work with other database engines. Be careful if changing database.