2015-09-11 14:41:01 +05:30
|
|
|
# This migration comes from acts_as_taggable_on_engine (originally 4)
|
2019-02-15 15:39:39 +05:30
|
|
|
class AddMissingTaggableIndex < ActiveRecord::Migration[4.2]
|
2015-09-11 14:41:01 +05:30
|
|
|
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
|