File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed
Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff line change 1+ class AddPgStatStatementsExtension < ActiveRecord ::Migration [ 7.0 ]
2+ def change
3+ reversible do |direction |
4+ direction . up do
5+ execute <<-SQL
6+ CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
7+ SQL
8+ end
9+
10+ direction . down do
11+ execute <<-SQL
12+ DROP EXTENSION pg_stat_statements;
13+ SQL
14+ end
15+ end
16+ end
17+ end
Original file line number Diff line number Diff line change 1010#
1111# It's strongly recommended that you check this file into your version control system.
1212
13- ActiveRecord ::Schema [ 7.0 ] . define ( version : 2025_03_15_124619 ) do
13+ ActiveRecord ::Schema [ 7.0 ] . define ( version : 2025_04_30_110802 ) do
1414 # These are extensions that must be enabled in order to support this database
1515 enable_extension "pg_stat_statements"
1616 enable_extension "plpgsql"
You can’t perform that action at this time.
0 commit comments