hotfix: added if_exist method to migration

This commit is contained in:
Oleg Hasjanov 2021-07-14 13:22:09 +03:00
parent f074d691b5
commit 25d743c1ca

View file

@ -1,6 +1,6 @@
class AddJsonStatusesHistoryFieldToDomain < ActiveRecord::Migration[6.1]
def change
add_column :domains, :json_statuses_history, :jsonb, if_not_exists: true
add_index :domains, :json_statuses_history, using: :gin
add_index :domains, :json_statuses_history, using: :gin, if_not_exists: true
end
end