diff options
| author | Andreas Brandl <abrandl@gitlab.com> | 2018-03-01 15:42:04 +0100 |
|---|---|---|
| committer | Andreas Brandl <abrandl@gitlab.com> | 2018-03-06 12:53:14 +0100 |
| commit | 43b74afd8656df8228c19d5e5e6aee9f87abc244 (patch) | |
| tree | c1f4a7b09d53af65ed13774e30f2a27be38c8052 /db/schema.rb | |
| parent | 986f470d40a3ed993bb6b2c2115a05c24eb575fa (diff) | |
| download | gitlab-ce-43b74afd8656df8228c19d5e5e6aee9f87abc244.tar.gz | |
Rename to UserInteractedProjects.
This is to avoid a mix-up with the existing concept of 'user
contributions'. See `User#contributed_projects` or
`Event#contributions`.
Diffstat (limited to 'db/schema.rb')
| -rw-r--r-- | db/schema.rb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/db/schema.rb b/db/schema.rb index 8366957f691..b94c8af273a 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -1815,13 +1815,6 @@ ActiveRecord::Schema.define(version: 20180304204842) do add_index "user_callouts", ["user_id", "feature_name"], name: "index_user_callouts_on_user_id_and_feature_name", unique: true, using: :btree add_index "user_callouts", ["user_id"], name: "index_user_callouts_on_user_id", using: :btree - create_table "user_contributed_projects", id: false, force: :cascade do |t| - t.integer "user_id", null: false - t.integer "project_id", null: false - end - - add_index "user_contributed_projects", ["project_id", "user_id"], name: "index_user_contributed_projects_on_project_id_and_user_id", unique: true, using: :btree - create_table "user_custom_attributes", force: :cascade do |t| t.datetime_with_timezone "created_at", null: false t.datetime_with_timezone "updated_at", null: false @@ -1833,6 +1826,13 @@ ActiveRecord::Schema.define(version: 20180304204842) do add_index "user_custom_attributes", ["key", "value"], name: "index_user_custom_attributes_on_key_and_value", using: :btree add_index "user_custom_attributes", ["user_id", "key"], name: "index_user_custom_attributes_on_user_id_and_key", unique: true, using: :btree + create_table "user_interacted_projects", id: false, force: :cascade do |t| + t.integer "user_id", null: false + t.integer "project_id", null: false + end + + add_index "user_interacted_projects", ["project_id", "user_id"], name: "index_user_interacted_projects_on_project_id_and_user_id", unique: true, using: :btree + create_table "user_synced_attributes_metadata", force: :cascade do |t| t.boolean "name_synced", default: false t.boolean "email_synced", default: false @@ -2101,9 +2101,9 @@ ActiveRecord::Schema.define(version: 20180304204842) do add_foreign_key "trending_projects", "projects", on_delete: :cascade add_foreign_key "u2f_registrations", "users" add_foreign_key "user_callouts", "users", on_delete: :cascade - add_foreign_key "user_contributed_projects", "projects", name: "fk_6fe26e92ae", on_delete: :cascade - add_foreign_key "user_contributed_projects", "users", name: "fk_285db038d3", on_delete: :cascade add_foreign_key "user_custom_attributes", "users", on_delete: :cascade + add_foreign_key "user_interacted_projects", "projects", name: "fk_722ceba4f7", on_delete: :cascade + add_foreign_key "user_interacted_projects", "users", name: "fk_0894651f08", on_delete: :cascade add_foreign_key "user_synced_attributes_metadata", "users", on_delete: :cascade add_foreign_key "users_star_projects", "projects", name: "fk_22cd27ddfc", on_delete: :cascade add_foreign_key "web_hook_logs", "web_hooks", on_delete: :cascade |
