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

19 lines
419 B
Ruby

# rubocop:disable Migration/UpdateColumnInBatches
class SetConfidentialIssuesEventsOnWebhooks < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
update_column_in_batches(:web_hooks, :confidential_issues_events, true) do |table, query|
query.where(table[:issues_events].eq(true))
end
end
def down
# noop
end
end