debian-mirror-gitlab/db/migrate/20200313202430_add_index_chat_name_service_id.rb
2020-04-22 19:07:51 +05:30

18 lines
328 B
Ruby

# frozen_string_literal: true
class AddIndexChatNameServiceId < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :chat_names, :service_id
end
def down
remove_concurrent_index :chat_names, :service_id
end
end