Sha256: cea942697d123a5cedf4b7e1b2e699fca76a0a6a608c7bb2196dd0a1d0fe951b

Contents?: true

Size: 238 Bytes

Versions: 42

Compression:

Stored size: 238 Bytes

Contents

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

Version data entries

42 entries across 26 versions & 2 rubygems

Version Path
acts-as-taggable-on-4.0.0 db/migrate/4_add_missing_taggable_index.rb
acts-as-taggable-on-4.0.0.pre db/migrate/4_add_missing_taggable_index.rb
alchemy_cms-3.1.3 db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.1 db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.1 spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.0.4 spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.0.4 db/migrate/20140701160225_add_missing_taggable_index.rb
acts-as-taggable-on-3.5.0 db/migrate/4_add_missing_taggable_index.rb
alchemy_cms-3.1.0 spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.0 db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.0.rc3 db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.0.rc3 spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.0.rc2 spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.0.rc2 db/migrate/20140701160225_add_missing_taggable_index.rb
acts-as-taggable-on-3.4.4 db/migrate/4_add_missing_taggable_index.rb
alchemy_cms-3.1.0.rc1 db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.0.rc1 spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.0.beta6 spec/dummy/db/migrate/20140701160225_add_missing_taggable_index.rb
alchemy_cms-3.1.0.beta6 db/migrate/20140701160225_add_missing_taggable_index.rb
acts-as-taggable-on-3.4.3 db/migrate/4_add_missing_taggable_index.rb