Skip to content

Commit 7f642ec

Browse files
committed
Update 20141231203425_replace_rocket_tag_with_aato.rb
1 parent da65f2b commit 7f642ec

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

db/migrate/20141231203425_replace_rocket_tag_with_aato.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ def up
1212
ActsAsTaggableOn::Tag.reset_counters(tag.id, :taggings)
1313
end
1414

15-
add_index 'tags', ['name'], name: 'index_tags_on_name', unique: true
16-
15+
add_index 'tags', ['name'], name: 'index_tags_on_name'
16+
#TODO, add unique constraint to index_tags_on_name
17+
1718
remove_index 'taggings', name: "index_taggings_on_tag_id"
1819
remove_index 'taggings', name: "index_taggings_on_taggable_id_and_taggable_type_and_context"
19-
add_index 'taggings',
20-
['tag_id', 'taggable_id', 'taggable_type', 'context', 'tagger_id', 'tagger_type'], name: 'taggings_idx'
21-
22-
#TODO, add unique constraint to taggings_idx
20+
add_index 'taggings', ['tag_id', 'taggable_id', 'taggable_type', 'context', 'tagger_id', 'tagger_type'],
21+
unique: true,
22+
name: 'taggings_idx'
2323
end
2424

2525
def down

0 commit comments

Comments
 (0)