Moved to Netbeans 6.5. Started order creation
[depot.git] / db / migrate / 20090304153613_create_line_items.rb
1 class CreateLineItems < ActiveRecord::Migration
2 def self.up
3 create_table :line_items do |t|
4 t.integer :product_id
5 t.integer :order_id
6 t.integer :quantity
7 t.decimal :total_price
8
9 t.timestamps
10 end
11 end
12
13 def self.down
14 drop_table :line_items
15 end
16 end