diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2018-02-05 17:50:07 +0000 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2018-02-05 17:50:07 +0000 |
commit | cf9e29672ce0df9647eecd94d099d15dc1bdac0e (patch) | |
tree | 89114aa9f73588176b44fe4a28312475211bdb0b /db/schema.rb | |
parent | df176fe747cad64fd86f8b91fe94f8b40bbd8a04 (diff) | |
parent | 24a11c957a34d2f22c0276fa8dcc3e2c23d1f164 (diff) | |
download | gitlab-ce-cf9e29672ce0df9647eecd94d099d15dc1bdac0e.tar.gz |
Merge branch '32282-add-foreign-keys-to-todos' into 'master'
Add missing foreign key and NOT NULL constraints to todos table.
Closes #32282
See merge request gitlab-org/gitlab-ce!16849
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/db/schema.rb b/db/schema.rb index 50a2ceaaeee..432eb095746 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: 20180202111106) do +ActiveRecord::Schema.define(version: 20180204200836) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1707,7 +1707,7 @@ ActiveRecord::Schema.define(version: 20180202111106) do t.integer "project_id", null: false t.integer "target_id" t.string "target_type", null: false - t.integer "author_id" + t.integer "author_id", null: false t.integer "action", null: false t.string "state", null: false t.datetime "created_at" @@ -2047,7 +2047,10 @@ ActiveRecord::Schema.define(version: 20180202111106) do add_foreign_key "system_note_metadata", "notes", name: "fk_d83a918cb1", on_delete: :cascade add_foreign_key "timelogs", "issues", name: "fk_timelogs_issues_issue_id", on_delete: :cascade add_foreign_key "timelogs", "merge_requests", name: "fk_timelogs_merge_requests_merge_request_id", on_delete: :cascade + add_foreign_key "todos", "notes", name: "fk_91d1f47b13", on_delete: :cascade add_foreign_key "todos", "projects", name: "fk_45054f9c45", on_delete: :cascade + add_foreign_key "todos", "users", column: "author_id", name: "fk_ccf0373936", on_delete: :cascade + add_foreign_key "todos", "users", name: "fk_d94154aa95", on_delete: :cascade add_foreign_key "trending_projects", "projects", on_delete: :cascade add_foreign_key "u2f_registrations", "users" add_foreign_key "user_callouts", "users", on_delete: :cascade |