Sha256: b87019e2a3a9397cecff89314d54dfb8978d9a5f708c71e5abafec345898864d

Contents?: true

Size: 264 Bytes

Versions: 2

Compression:

Stored size: 264 Bytes

Contents

class CreateLineItems < ActiveRecord::Migration
  def change
    create_table :line_items do |t|
      t.references :order, :null => false
      t.integer :quantity, :null => false
      t.references :product, :null => false
      t.float :total
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
piggybak-0.1.1 db/migrate/20111227150432_create_line_items.rb
piggybak-0.1.0 db/migrate/20111227150432_create_line_items.rb