debian-mirror-gitlab/db/migrate/20160615142710_add_index_on_requested_at_to_members.rb

17 lines
355 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
# rubocop:disable RemoveIndex
class AddIndexOnRequestedAtToMembers < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
2017-08-17 22:00:37 +05:30
DOWNTIME = false
disable_ddl_transaction!
2017-08-17 22:00:37 +05:30
def up
add_concurrent_index :members, :requested_at
end
2017-08-17 22:00:37 +05:30
def down
remove_index :members, :requested_at if index_exists? :members, :requested_at
end
end