summaryrefslogtreecommitdiff
path: root/db/migrate/20170327091750_add_created_at_index_to_deployments.rb
blob: f29fff7d5b91c9e0a277e970c889c4b42b43d28f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
class AddCreatedAtIndexToDeployments < ActiveRecord::Migration[4.2]
  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