Sha256: 9b4c52e80128411af911d43c341b122bbeee256bd4380926763a568e2eaee004
Contents?: true
Size: 415 Bytes
Versions: 2
Compression:
Stored size: 415 Bytes
Contents
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts-as-taggable-on-6.0.0 | db/migrate/4_add_missing_taggable_index.rb |
acts-as-taggable-on-5.0.0 | db/migrate/4_add_missing_taggable_index.rb |