12 lines
281 B
Ruby
12 lines
281 B
Ruby
|
# rubocop:disable all
|
||
|
# Migration type: online without errors
|
||
|
|
||
|
class AddIndexOnAwardEmojiUserAndName < ActiveRecord::Migration
|
||
|
include Gitlab::Database::MigrationHelpers
|
||
|
disable_ddl_transaction!
|
||
|
|
||
|
def change
|
||
|
add_concurrent_index(:award_emoji, [:user_id, :name])
|
||
|
end
|
||
|
end
|