BigW Consortium Gitlab

20160615142710_add_index_on_requested_at_to_members.rb 355 Bytes
Newer Older
1
# rubocop:disable RemoveIndex
2 3 4
class AddIndexOnRequestedAtToMembers < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

Douwe Maan committed
5 6
  DOWNTIME = false

7 8
  disable_ddl_transaction!

9
  def up
10 11
    add_concurrent_index :members, :requested_at
  end
12 13 14 15

  def down
    remove_index :members, :requested_at if index_exists? :members, :requested_at
  end
16
end