Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-08-30 23:56:26 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-01 00:34:23 +0300
commita103a5d9cc2f496854d75492fe3f759fad0a913f (patch)
treee46e652fb3ade98f6af262c28f471f528d4beb6e /db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb
parentdebb65b5c81094765b2aa515a20e964cd8a14b6f (diff)
Add option to confidential issues events to trigger Webhooks
Diffstat (limited to 'db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb')
-rw-r--r--db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb b/db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb
new file mode 100644
index 00000000000..a27947212f6
--- /dev/null
+++ b/db/migrate/20160830203109_add_confidential_issues_events_to_web_hooks.rb
@@ -0,0 +1,15 @@
+class AddConfidentialIssuesEventsToWebHooks < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ disable_ddl_transaction!
+
+ def up
+ add_column_with_default :web_hooks, :confidential_issues_events, :boolean, default: false, allow_null: false
+ end
+
+ def down
+ remove_column :web_hooks, :confidential_issues_events
+ end
+end