DB for promtion, promotion product,product

This commit is contained in:
Phyo
2017-08-16 11:00:37 +06:30
parent 0ec1657f7b
commit db43ae186c
4 changed files with 51 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
class CreatePromotionProduct < ActiveRecord::Migration[5.1]
def change
create_table :promotion_products do |t|
t.references :promotion, foreign_key: true
t.string :item_code, :null => false
t.integer :min_qty
t.integer :net_off
t.integer :net_price
t.integer :percentage
t.timestamps
end
end
end