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:
authorStan Hu <stanhu@gmail.com>2015-05-16 09:33:31 +0300
committerStan Hu <stanhu@gmail.com>2015-05-22 06:48:16 +0300
commitdeeff56967516764b287e15b2063899b13395b41 (patch)
tree6ccb51e39d3e2e670aba8ef3bb7fa24e7ed232a8 /db/migrate
parent2b1b026a1e8c7654b475aa0aaacf3121e86ee2a5 (diff)
Add support for Webhook note events
Closes https://github.com/gitlabhq/gitlabhq/issues/6745
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20150516060434_add_note_events_to_web_hooks.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20150516060434_add_note_events_to_web_hooks.rb b/db/migrate/20150516060434_add_note_events_to_web_hooks.rb
new file mode 100644
index 00000000000..0097587b4f6
--- /dev/null
+++ b/db/migrate/20150516060434_add_note_events_to_web_hooks.rb
@@ -0,0 +1,9 @@
+class AddNoteEventsToWebHooks < ActiveRecord::Migration
+ def up
+ add_column :web_hooks, :note_events, :boolean, default: false, null: false
+ end
+
+ def down
+ remove_column :web_hooks, :note_events, :boolean
+ end
+end