2016-12-17 16:59:11 +01:00
|
|
|
# This migration comes from acts_as_taggable_on_engine (originally 6)
|
|
|
|
class AddMissingIndexes < ActiveRecord::Migration
|
|
|
|
def change
|
|
|
|
add_index :taggings, :tag_id
|
|
|
|
add_index :taggings, :taggable_id
|
|
|
|
add_index :taggings, :taggable_type
|
|
|
|
add_index :taggings, :tagger_id
|
|
|
|
add_index :taggings, :context
|
|
|
|
|
2017-04-22 20:01:47 +02:00
|
|
|
add_index :taggings, %i[tagger_id tagger_type]
|
|
|
|
add_index :taggings, %i[taggable_id taggable_type tagger_id context],
|
2016-12-17 16:59:11 +01:00
|
|
|
name: 'taggings_idy'
|
|
|
|
end
|
|
|
|
end
|