diff options
author | Kirilll Zaycev <kirik910@gmail.com> | 2015-12-01 23:47:23 +0300 |
---|---|---|
committer | Kirilll Zaycev <kirik910@gmail.com> | 2016-01-15 00:35:12 +0300 |
commit | e80113593c120b71af428ea1b00f11fcdeae58b8 (patch) | |
tree | 1d50530a15f05e35bf0c9609ecf8f83a5cd1d106 /db | |
parent | 2f2aada3b6b900fdff276aafc3f93e5a1c1465c6 (diff) | |
download | gitlab-ce-e80113593c120b71af428ea1b00f11fcdeae58b8.tar.gz |
Raise hook url limit
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20151201203948_raise_hook_url_limit.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 18 |
2 files changed, 14 insertions, 9 deletions
diff --git a/db/migrate/20151201203948_raise_hook_url_limit.rb b/db/migrate/20151201203948_raise_hook_url_limit.rb new file mode 100644 index 00000000000..98a7fca6f6f --- /dev/null +++ b/db/migrate/20151201203948_raise_hook_url_limit.rb @@ -0,0 +1,5 @@ +class RaiseHookUrlLimit < ActiveRecord::Migration + def change + change_column :web_hooks, :url, :string, limit: 2000 + end +end diff --git a/db/schema.rb b/db/schema.rb index 2fc8c4d5ed4..9045135dd9a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -874,19 +874,19 @@ ActiveRecord::Schema.define(version: 20160113111034) do add_index "users_star_projects", ["user_id"], name: "index_users_star_projects_on_user_id", using: :btree create_table "web_hooks", force: :cascade do |t| - t.string "url" + t.string "url", limit: 2000 t.integer "project_id" t.datetime "created_at" t.datetime "updated_at" - t.string "type", default: "ProjectHook" + t.string "type", default: "ProjectHook" t.integer "service_id" - t.boolean "push_events", default: true, null: false - 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 - t.boolean "enable_ssl_verification", default: true - t.boolean "build_events", default: false, null: false + t.boolean "push_events", default: true, null: false + 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 + t.boolean "enable_ssl_verification", default: true + t.boolean "build_events", default: false, null: false end add_index "web_hooks", ["created_at", "id"], name: "index_web_hooks_on_created_at_and_id", using: :btree |