Skip to content

Commit da65f2b

Browse files
committed
Update 20141231203425_replace_rocket_tag_with_aato.rb
1 parent 92e5d6a commit da65f2b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

db/migrate/20141231203425_replace_rocket_tag_with_aato.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@ def up
1717
remove_index 'taggings', name: "index_taggings_on_tag_id"
1818
remove_index 'taggings', name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
1919
add_index 'taggings',
20-
['tag_id', 'taggable_id', 'taggable_type', 'context', 'tagger_id', 'tagger_type'],
21-
unique: true, name: 'taggings_idx'
20+
['tag_id', 'taggable_id', 'taggable_type', 'context', 'tagger_id', 'tagger_type'], name: 'taggings_idx'
21+
22+
#TODO, add unique constraint to taggings_idx
2223
end
2324

2425
def down

0 commit comments

Comments
 (0)