20170327091750_add_created_at_index_to_deployments.rb 304 Bytes
Newer Older
1
class AddCreatedAtIndexToDeployments < ActiveRecord::Migration[4.2]
2 3 4 5 6 7
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

8
  def up
9 10
    add_concurrent_index :deployments, :created_at
  end
11 12

  def down
Pawel Chojnacki's avatar
Pawel Chojnacki committed
13
    remove_concurrent_index :deployments, :created_at
14
  end
15
end