summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorGabriel Mazetto <gabriel@gitlab.com>2016-04-27 04:24:49 -0300
committerGabriel Mazetto <gabriel@gitlab.com>2016-04-30 05:04:10 -0300
commit0cd5edf35cfaca74344dd389aadd65f0f179d395 (patch)
treed83d697f60126f5b10992dca550751e2182778d9 /db
parent40c38644a88b8f5e88e6fd3317421206d8ee851e (diff)
downloadgitlab-ce-0cd5edf35cfaca74344dd389aadd65f0f179d395.tar.gz
Backported minimal safewebhook implementation to GitLab CE
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160413115152_add_token_to_web_hooks.rb5
-rw-r--r--db/schema.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20160413115152_add_token_to_web_hooks.rb b/db/migrate/20160413115152_add_token_to_web_hooks.rb
new file mode 100644
index 00000000000..f04225068cd
--- /dev/null
+++ b/db/migrate/20160413115152_add_token_to_web_hooks.rb
@@ -0,0 +1,5 @@
+class AddTokenToWebHooks < ActiveRecord::Migration
+ def change
+ add_column :web_hooks, :token, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 42457d92353..04aee737e4c 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -1025,6 +1025,7 @@ ActiveRecord::Schema.define(version: 20160421130527) do
t.boolean "enable_ssl_verification", default: true
t.boolean "build_events", default: false, null: false
t.boolean "wiki_page_events", default: false, null: false
+ t.string "token"
end
add_index "web_hooks", ["created_at", "id"], name: "index_web_hooks_on_created_at_and_id", using: :btree