our commission is now shown on cart page
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class AddCommissionToItemInCart < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :item_in_carts, :commision, :decimal
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,6 @@
|
||||
class RenameCommissionInItemInCart < ActiveRecord::Migration
|
||||
def change
|
||||
remove_column :item_in_carts, :commision
|
||||
add_column :item_in_carts, :commission, :decimal
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20150420044444) do
|
||||
ActiveRecord::Schema.define(version: 20150614050336) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -104,6 +104,7 @@ ActiveRecord::Schema.define(version: 20150420044444) do
|
||||
t.datetime "updated_at", null: false
|
||||
t.integer "count"
|
||||
t.decimal "price"
|
||||
t.decimal "commission"
|
||||
end
|
||||
|
||||
create_table "item_in_groups", force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user