class CreateStreams < ActiveRecord::Migration def self.up create_table :streams do |t| t.string :stream_type t.datetime :started_at t.integer :actor_id t.string :actor_type t.integer :subject_id t.string :subject_type t.integer :receiver_id t.string :receiver_type end end def self.down drop_table :streams end end