Add migration to set confidential issues events on web hooks
This commit is contained in:
parent
443573ad93
commit
9a5c9b4692
2 changed files with 16 additions and 1 deletions
|
@ -0,0 +1,15 @@
|
||||||
|
class SetConfidentialIssuesEventsOnWebhooks < ActiveRecord::Migration
|
||||||
|
include Gitlab::Database::MigrationHelpers
|
||||||
|
|
||||||
|
DOWNTIME = false
|
||||||
|
|
||||||
|
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
|
|
@ -11,7 +11,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema.define(version: 20160830232601) do
|
ActiveRecord::Schema.define(version: 20160901141443) do
|
||||||
|
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "plpgsql"
|
enable_extension "plpgsql"
|
||||||
|
|
Loading…
Reference in a new issue