Sha256: 22eb510fec22d79b89f2b5955ad64d6c7072858e6c71d193b6fb682c8a344fbd
Contents?: true
Size: 485 Bytes
Versions: 15
Compression:
Stored size: 485 Bytes
Contents
# This migration comes from acts_as_taggable_on_engine (originally 4) if ActiveRecord.gem_version >= Gem::Version.new('5.0') class AddMissingTaggableIndex < ActiveRecord::Migration[4.2]; end else class AddMissingTaggableIndex < ActiveRecord::Migration; end end AddMissingTaggableIndex.class_eval do 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
Version data entries
15 entries across 15 versions & 5 rubygems