2018-11-13 07:27:31 +00:00
|
|
|
class AddPagesDomainEnabledUntilIndex < ActiveRecord::Migration[4.2]
|
2018-02-06 13:25:46 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_concurrent_index :pages_domains, [:project_id, :enabled_until]
|
|
|
|
add_concurrent_index :pages_domains, [:verified_at, :enabled_until]
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_concurrent_index :pages_domains, [:verified_at, :enabled_until]
|
|
|
|
remove_concurrent_index :pages_domains, [:project_id, :enabled_until]
|
|
|
|
end
|
|
|
|
end
|