debian-mirror-gitlab/db/migrate/20160901141443_set_confidential_issues_events_on_webhooks.rb

19 lines
419 B
Ruby
Raw Normal View History

2017-09-10 17:25:29 +05:30
# rubocop:disable Migration/UpdateColumnInBatches
2019-02-15 15:39:39 +05:30
class SetConfidentialIssuesEventsOnWebhooks < ActiveRecord::Migration[4.2]
2016-09-29 09:46:39 +05:30
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