debian-mirror-gitlab/db/migrate/20150425164650_add_missing_taggable_index.acts_as_taggable_on_engine.rb
2016-06-16 23:09:34 +05:30

12 lines
330 B
Ruby

# rubocop:disable all
# 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