diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-03-13 20:36:17 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-03-14 02:12:55 +0800 |
commit | 67729cecc12a56591160d04ea5d79614b1102dc6 (patch) | |
tree | 75bc08a351defa415c12de009d2bb3203e96a469 /db/migrate/20161209153400_add_unique_index_for_environment_slug.rb | |
parent | 32da7602686f2b8161175d82b121deb9e01b2db5 (diff) | |
download | gitlab-ce-67729cecc12a56591160d04ea5d79614b1102dc6.tar.gz |
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.rb | 2 |
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 |