2016-12-17 16:59:11 +01:00
|
|
|
# This migration comes from acts_as_taggable_on_engine (originally 4)
|
|
|
|
class AddMissingTaggableIndex < ActiveRecord::Migration
|
|
|
|
def self.up
|
2017-04-22 20:01:47 +02:00
|
|
|
add_index :taggings, %i[taggable_id taggable_type context]
|
2016-12-17 16:59:11 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
2017-04-22 20:01:47 +02:00
|
|
|
remove_index :taggings, %i[taggable_id taggable_type context]
|
2016-12-17 16:59:11 +01:00
|
|
|
end
|
|
|
|
end
|