Sha256: 6a8795004e4d72f23ef499cff4643d4e576f7264c7063d97bc9a8be7eae8e18b

Contents?: true

Size: 356 Bytes

Versions: 7

Compression:

Stored size: 356 Bytes

Contents

class MigrateToActsAsTaggableOn < ActiveRecord::Migration
  
  def self.up

    change_table :taggings do |t|
      t.references :tagger, :polymorphic => true
      t.string :context, :limit => 128
      t.datetime :created_at      
    end
    
    add_index :taggings, [:taggable_id, :taggable_type, :context]
  end  
  
  def self.down
    
  end
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
community_engine-3.2.0 db/migrate/080_migrate_to_acts_as_taggable_on.rb
community_engine-3.0.0 db/migrate/080_migrate_to_acts_as_taggable_on.rb
community_engine-2.3.2 db/migrate/080_migrate_to_acts_as_taggable_on.rb
community_engine-2.3.1 db/migrate/080_migrate_to_acts_as_taggable_on.rb
community_engine-2.3.0 db/migrate/080_migrate_to_acts_as_taggable_on.rb
community_engine-2.1.0 db/migrate/080_migrate_to_acts_as_taggable_on.rb
community_engine-2.0.0 db/migrate/080_migrate_to_acts_as_taggable_on.rb