diff options
author | Stan Hu <stanhu@gmail.com> | 2015-05-15 23:33:31 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-05-21 23:48:16 -0400 |
commit | deeff56967516764b287e15b2063899b13395b41 (patch) | |
tree | 6ccb51e39d3e2e670aba8ef3bb7fa24e7ed232a8 /db | |
parent | 2b1b026a1e8c7654b475aa0aaacf3121e86ee2a5 (diff) | |
download | gitlab-ce-deeff56967516764b287e15b2063899b13395b41.tar.gz |
Add support for Webhook note events
Closes https://github.com/gitlabhq/gitlabhq/issues/6745
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20150516060434_add_note_events_to_web_hooks.rb | 9 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 11 insertions, 1 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 diff --git a/db/schema.rb b/db/schema.rb index f7581eaf7fb..1ab91256406 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150509180749) do +ActiveRecord::Schema.define(version: 20150516060434) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -533,6 +533,7 @@ ActiveRecord::Schema.define(version: 20150509180749) do t.boolean "issues_events", default: false, null: false t.boolean "merge_requests_events", default: false, null: false t.boolean "tag_push_events", default: false + t.boolean "note_events", default: false, null: false end add_index "web_hooks", ["created_at", "id"], name: "index_web_hooks_on_created_at_and_id", using: :btree |