Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2017-03-13 15:36:17 +0300
committerLin Jen-Shin <godfat@godfat.org>2017-03-13 21:12:55 +0300
commit67729cecc12a56591160d04ea5d79614b1102dc6 (patch)
tree75bc08a351defa415c12de009d2bb3203e96a469 /db/migrate/20161209153400_add_unique_index_for_environment_slug.rb
parent32da7602686f2b8161175d82b121deb9e01b2db5 (diff)
Add a test which would rollback db and migrate again
Closes #29106
Diffstat (limited to 'db/migrate/20161209153400_add_unique_index_for_environment_slug.rb')
-rw-r--r--db/migrate/20161209153400_add_unique_index_for_environment_slug.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20161209153400_add_unique_index_for_environment_slug.rb b/db/migrate/20161209153400_add_unique_index_for_environment_slug.rb
index d7ef1aa83d9..ede0316e860 100644
--- a/db/migrate/20161209153400_add_unique_index_for_environment_slug.rb
+++ b/db/migrate/20161209153400_add_unique_index_for_environment_slug.rb
@@ -14,6 +14,6 @@ class AddUniqueIndexForEnvironmentSlug < ActiveRecord::Migration
end
def down
- remove_index :environments, [:project_id, :slug], unique: true if index_exists? :environments, [:project_id, :slug]
+ remove_index :environments, [:project_id, :slug] if index_exists? :environments, [:project_id, :slug]
end
end