mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 21:46:24 +02:00
11 lines
295 B
Ruby
11 lines
295 B
Ruby
class AddIndexToLogDomainObject < ActiveRecord::Migration[6.1]
|
|
disable_ddl_transaction!
|
|
def up
|
|
enable_extension 'btree_gin'
|
|
add_index :log_domains, :object, using: :gin, algorithm: :concurrently, if_not_exists: true
|
|
end
|
|
|
|
def down
|
|
remove_index :log_domains, :object
|
|
end
|
|
end
|