2018-11-13 07:27:31 +00:00
|
|
|
class AddCreatedAtIndexToDeployments < ActiveRecord::Migration[4.2]
|
2017-03-27 09:22:43 +00:00
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2017-03-28 13:54:02 +00:00
|
|
|
def up
|
2017-03-27 09:22:43 +00:00
|
|
|
add_concurrent_index :deployments, :created_at
|
|
|
|
end
|
2017-03-28 13:54:02 +00:00
|
|
|
|
|
|
|
def down
|
2017-04-24 22:02:58 +00:00
|
|
|
remove_concurrent_index :deployments, :created_at
|
2017-03-28 13:54:02 +00:00
|
|
|
end
|
2017-03-27 09:22:43 +00:00
|
|
|
end
|