Sha256: 21fc7c07cf90450639baa910d1663fb23bef324c6492d448101e6c46c9c04383

Contents?: true

Size: 384 Bytes

Versions: 9

Compression:

Stored size: 384 Bytes

Contents

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
streamit-0.0.8 test/dummy/db/migrate/20110206230646_create_streams.rb
streamit-0.0.7 test/dummy/db/migrate/20110206230646_create_streams.rb
streamit-0.0.6.2 test/dummy/db/migrate/20110206230646_create_streams.rb
streamit-0.0.6.1 test/dummy/db/migrate/20110206230646_create_streams.rb
streamit-0.0.6 test/dummy/db/migrate/20110206230646_create_streams.rb
streamit-0.0.5 test/dummy/db/migrate/20110206230646_create_streams.rb
streamit-0.0.4 test/dummy/db/migrate/20110206230646_create_streams.rb
streamit-0.0.3 test/dummy/db/migrate/20110206230646_create_streams.rb
streamit-0.0.1 test/dummy/db/migrate/20110206230646_create_streams.rb