Skip to content

Commit

Permalink
Fix migration, #references already adds index
Browse files Browse the repository at this point in the history
  • Loading branch information
rbritom committed Jul 2, 2016
1 parent 33640a3 commit 95f7430
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/2_add_missing_unique_indices.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def self.down
remove_index :tags, :name

remove_index :taggings, name: 'taggings_idx'
add_index :taggings, :tag_id

add_index :taggings, [:taggable_id, :taggable_type, :context]
end
end

0 comments on commit 95f7430

Please sign in to comment.