debian-mirror-gitlab/db/migrate/20170424142900_add_index_to_web_hooks_type.rb
2019-02-15 15:39:39 +05:30

16 lines
280 B
Ruby

class AddIndexToWebHooksType < ActiveRecord::Migration[4.2]
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