debian-mirror-gitlab/db/migrate/20170816153940_add_index_on_ci_builds_protected.rb
2019-02-15 15:39:39 +05:30

16 lines
336 B
Ruby

class AddIndexOnCiBuildsProtected < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :ci_builds, :protected
end
def down
remove_concurrent_index :ci_builds, :protected if index_exists?(:ci_builds, :protected)
end
end