2016-07-03 18:09:46 +00:00
|
|
|
# rubocop:disable all
|
|
|
|
# Migration type: online without errors
|
|
|
|
|
2018-11-13 07:27:31 +00:00
|
|
|
class AddIndexOnAwardEmojiUserAndName < ActiveRecord::Migration[4.2]
|
2016-07-03 18:09:46 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def change
|
|
|
|
add_concurrent_index(:award_emoji, [:user_id, :name])
|
|
|
|
end
|
|
|
|
end
|