Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20170327091750_add_created_at_index_to_deployments.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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