diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-30 16:04:52 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-05-30 16:04:52 +0200 |
commit | e542583e91dc53698048686cf4268eaeae807973 (patch) | |
tree | e32af2482ce1c424d8fdacdf809a0a3afe02ab5a /db/schema.rb | |
parent | 74caf54704704e30b8ed45e2459828890f416b08 (diff) | |
download | gitlab-ce-e542583e91dc53698048686cf4268eaeae807973.tar.gz |
Add a unique index to stages on pipeline / position
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index 932b7f8da02..a3f27f87ff1 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: 20180529093006) do +ActiveRecord::Schema.define(version: 20180530135500) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -518,6 +518,7 @@ ActiveRecord::Schema.define(version: 20180529093006) do end add_index "ci_stages", ["pipeline_id", "name"], name: "index_ci_stages_on_pipeline_id_and_name", unique: true, using: :btree + add_index "ci_stages", ["pipeline_id", "position"], name: "index_ci_stages_on_pipeline_id_and_position", unique: true, using: :btree add_index "ci_stages", ["pipeline_id"], name: "index_ci_stages_on_pipeline_id", using: :btree add_index "ci_stages", ["project_id"], name: "index_ci_stages_on_project_id", using: :btree |