disable pghero migration in prod

This commit is contained in:
olegphenomenon 2021-11-25 10:22:15 +02:00
parent 8030079197
commit d72ebd1dc2

View file

@ -1,5 +1,6 @@
class CreatePgheroQueryStats < ActiveRecord::Migration[6.1] class CreatePgheroQueryStats < ActiveRecord::Migration[6.1]
def change def change
if Rails.env.development?
create_table :pghero_query_stats do |t| create_table :pghero_query_stats do |t|
t.text :database t.text :database
t.text :user t.text :user
@ -13,3 +14,4 @@ class CreatePgheroQueryStats < ActiveRecord::Migration[6.1]
add_index :pghero_query_stats, [:database, :captured_at] add_index :pghero_query_stats, [:database, :captured_at]
end end
end end
end