2017-09-10 17:25:29 +05:30
|
|
|
# rubocop:disable Migration/UpdateColumnInBatches
|
2016-09-29 09:46:39 +05:30
|
|
|
class SetConfidentialIssuesEventsOnWebhooks < ActiveRecord::Migration
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
2017-09-10 17:25:29 +05:30
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2016-09-29 09:46:39 +05:30
|
|
|
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
|