debian-mirror-gitlab/db/migrate/20170121130655_add_index_to_ci_runners_for_is_shared.rb

19 lines
375 B
Ruby
Raw Normal View History

2017-08-17 22:00:37 +05:30
# rubocop:disable RemoveIndex
2019-02-15 15:39:39 +05:30
class AddIndexToCiRunnersForIsShared < ActiveRecord::Migration[4.2]
2017-08-17 22:00:37 +05:30
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_concurrent_index :ci_runners, :is_shared
end
def down
if index_exists?(:ci_runners, :is_shared)
remove_index :ci_runners, :is_shared
end
end
end