agenda-libre-ruby/db/migrate/20161210105331_add_missing_...

11 lines
302 B
Ruby

# This migration comes from acts_as_taggable_on_engine (originally 4)
class AddMissingTaggableIndex < ActiveRecord::Migration
def self.up
add_index :taggings, %i[taggable_id taggable_type context]
end
def self.down
remove_index :taggings, %i[taggable_id taggable_type context]
end
end