diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2017-03-13 15:36:17 +0300 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2017-03-13 21:12:55 +0300 |
commit | 67729cecc12a56591160d04ea5d79614b1102dc6 (patch) | |
tree | 75bc08a351defa415c12de009d2bb3203e96a469 /db/migrate/20160919145149_add_group_id_to_labels.rb | |
parent | 32da7602686f2b8161175d82b121deb9e01b2db5 (diff) |
Add a test which would rollback db and migrate again
Closes #29106
Diffstat (limited to 'db/migrate/20160919145149_add_group_id_to_labels.rb')
-rw-r--r-- | db/migrate/20160919145149_add_group_id_to_labels.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/db/migrate/20160919145149_add_group_id_to_labels.rb b/db/migrate/20160919145149_add_group_id_to_labels.rb index 828b6afddb1..e20e693f3aa 100644 --- a/db/migrate/20160919145149_add_group_id_to_labels.rb +++ b/db/migrate/20160919145149_add_group_id_to_labels.rb @@ -12,8 +12,8 @@ class AddGroupIdToLabels < ActiveRecord::Migration end def down + remove_foreign_key :labels, column: :group_id remove_index :labels, :group_id if index_exists? :labels, :group_id - remove_foreign_key :labels, :namespaces, column: :group_id remove_column :labels, :group_id end end |