Sha256: deb1bf7008c93f1ab809ca215375d5417f8819a032da2dc1e167df6000bc0c95
Contents?: true
Size: 455 Bytes
Versions: 1
Compression:
Stored size: 455 Bytes
Contents
class CreateActivities < ActiveRecord::Migration def self.up create_table :activities do |t| t.string :verb, :null => false, :limit => 24 t.references :actor, :polymorphic => true t.references :object, :polymorphic => true t.references :indirect_object, :polymorphic => true t.string :context, :limit => 32 t.datetime :timestamp, :null => false end end def self.down drop_table :activities end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
evilmarty_activity_stream-1.0.0 | generators/activity_stream/templates/migrate/create_activities.rb |