item price is now saved when added to cart
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
class AddPriceToItemInCart < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :item_in_carts, :price, :decimal
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user