summaryrefslogtreecommitdiff
path: root/db/schema.rb
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-30 16:04:52 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2018-05-30 16:04:52 +0200
commite542583e91dc53698048686cf4268eaeae807973 (patch)
treee32af2482ce1c424d8fdacdf809a0a3afe02ab5a /db/schema.rb
parent74caf54704704e30b8ed45e2459828890f416b08 (diff)
downloadgitlab-ce-e542583e91dc53698048686cf4268eaeae807973.tar.gz
Add a unique index to stages on pipeline / position
Diffstat (limited to 'db/schema.rb')
-rw-r--r--db/schema.rb3
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