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