mirror of
https://github.com/internetee/registry.git
synced 2025-06-03 11:17:30 +02:00
hotfix: added if_exist method to migration
This commit is contained in:
parent
f074d691b5
commit
25d743c1ca
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue