item price is now saved when added to cart

This commit is contained in:
Senad Uka
2015-03-13 07:56:11 +01:00
parent 648dee4636
commit b2d4122940
4 changed files with 9 additions and 2 deletions

View File

@@ -12,7 +12,7 @@ class CreateItems < ActiveRecord::Migration
t.integer :stock
t.boolean :on_display
t.timestamps null: false
t.timestamps null: false
end
end
end

View File

@@ -0,0 +1,5 @@
class AddPriceToItemInCart < ActiveRecord::Migration
def change
add_column :item_in_carts, :price, :decimal
end
end