Sha256: e0507ba60a2f1f5d1d0a9a85824e8eefc87e9e3bc7846fe7efea73c3c16d4d69
Contents?: true
Size: 565 Bytes
Versions: 48
Compression:
Stored size: 565 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 ActsAsTaggableOn.taggings_table, [:taggable_id, :taggable_type, :context], name: 'taggings_taggable_context_idx' end def self.down remove_index ActsAsTaggableOn.taggings_table, name: 'taggings_taggable_context_idx' end end
Version data entries
48 entries across 48 versions & 1 rubygems