Sha256: 47336091b373f23ffe6ef6fa689ac4ecc52aa9799d0ef6afba29da72c05e12fd

Contents?: true

Size: 286 Bytes

Versions: 1

Compression:

Stored size: 286 Bytes

Contents

class CreateChooChooActivities < ActiveRecord::Migration
  def change
    create_table :choo_choo_activities do |t|

      t.string :last_action

      t.belongs_to :master_event, polymorphic: true
      t.belongs_to :last_event, polymorphic: true

      t.timestamps
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
choo_choo-0.0.1 db/migrate/20140310144724_create_choo_choo_activities.rb