summaryrefslogtreecommitdiff
path: root/db/migrate/20150425164650_add_missing_taggable_index.acts_as_taggable_on_engine.rb
blob: 71f2d7f43309d0628ec0120e211c945559c46846 (plain)
1
2
3
4
5
6
7
8
9
10
# This migration comes from acts_as_taggable_on_engine (originally 4)
class AddMissingTaggableIndex < ActiveRecord::Migration
  def self.up
    add_index :taggings, [:taggable_id, :taggable_type, :context]
  end

  def self.down
    remove_index :taggings, [:taggable_id, :taggable_type, :context]
  end
end