diff options
author | Nick Thomas <nick@gitlab.com> | 2016-12-14 22:58:44 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2016-12-15 13:57:03 +0000 |
commit | 35a3e9183052bab847c30203f27fea9cf77901a4 (patch) | |
tree | d49734bb5f147c457c958c7bdb17cecc6a4cc156 /db/schema.rb | |
parent | 2d1dfae9b63d35232e4bf537a0aca9b95e2d5e72 (diff) | |
download | gitlab-ce-35a3e9183052bab847c30203f27fea9cf77901a4.tar.gz |
Make the index on environment name and project id unique, fixing up any duplicates
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/db/schema.rb b/db/schema.rb index 4711b7873af..83c8ad48537 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: 20161212142807) do +ActiveRecord::Schema.define(version: 20161207231621) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -430,7 +430,7 @@ ActiveRecord::Schema.define(version: 20161212142807) do t.string "state", default: "available", null: false end - add_index "environments", ["project_id", "name"], name: "index_environments_on_project_id_and_name", using: :btree + add_index "environments", ["project_id", "name"], name: "index_environments_on_project_id_and_name", unique: true, using: :btree create_table "events", force: :cascade do |t| t.string "target_type" @@ -1290,4 +1290,4 @@ ActiveRecord::Schema.define(version: 20161212142807) do add_foreign_key "subscriptions", "projects", on_delete: :cascade add_foreign_key "trending_projects", "projects", on_delete: :cascade add_foreign_key "u2f_registrations", "users" -end
\ No newline at end of file +end |