summaryrefslogtreecommitdiff
path: root/db/migrate/20150111153140_add_some_more_missing_indexes.rb
blob: 110a3d9a4a9e93a66e4ff6e624b11e91e5b190b5 (plain)
1
2
3
4
5
6
7
8
class AddSomeMoreMissingIndexes < ActiveRecord::Migration
  def change
    add_index :locations, [:locatable_id, :locatable_type]
    add_index :photos, [:imageable_id, :imageable_type]
    add_index :creations, :category_id
    add_index :categories, :slug
  end
end