debian-mirror-gitlab/db/migrate/20160703180340_add_index_on_award_emoji_user_and_name.rb

12 lines
281 B
Ruby
Raw Normal View History

2016-08-24 12:49:21 +05:30
# rubocop:disable all
# Migration type: online without errors
2019-01-03 12:48:30 +05:30
class AddIndexOnAwardEmojiUserAndName < ActiveRecord::Migration
2016-08-24 12:49:21 +05:30
include Gitlab::Database::MigrationHelpers
disable_ddl_transaction!
def change
add_concurrent_index(:award_emoji, [:user_id, :name])
end
end