summaryrefslogtreecommitdiff
path: root/db/migrate/20170327091750_add_created_at_index_to_deployments.rb
blob: fd6ed499b80a186db9f1f1de715020072aee5ad4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class AddCreatedAtIndexToDeployments < ActiveRecord::Migration
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_concurrent_index :deployments, :created_at
  end

  def down
    remove_concurrent_index :deployments, :created_at
  end
end