Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions db/migrate/20250430110802_add_pg_stat_statements_extension.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
class AddPgStatStatementsExtension < ActiveRecord::Migration[7.0]
def change
reversible do |direction|
direction.up do
execute <<-SQL
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
SQL
end

direction.down do
execute <<-SQL
DROP EXTENSION pg_stat_statements;
SQL
end
end
end
end
2 changes: 1 addition & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2025_03_15_124619) do
ActiveRecord::Schema[7.0].define(version: 2025_04_30_110802) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"
Expand Down