hensei-api/db/migrate/20250201120655_enable_pg_statements.rb
Justin Edmund f914c1f16e Add migrations
* Update preview state default to pending
* Adds indexes
* Adds PgHero and PgStatements
2025-02-07 01:30:08 -08:00

9 lines
217 B
Ruby

class EnablePgStatements < ActiveRecord::Migration[8.0]
def up
execute 'CREATE EXTENSION IF NOT EXISTS pg_stat_statements;'
end
def down
execute 'DROP EXTENSION IF EXISTS pg_stat_statements;'
end
end