2018-11-13 07:27:31 +00:00
|
|
|
class AddIndexToWebHooksType < ActiveRecord::Migration[4.2]
|
2017-04-25 15:21:18 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
add_concurrent_index :web_hooks, :type
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_concurrent_index :web_hooks, :type
|
|
|
|
end
|
|
|
|
end
|