DB for promtion, promotion product,product
This commit is contained in:
13
db/migrate/20170815051517_create_promotion_product.rb
Normal file
13
db/migrate/20170815051517_create_promotion_product.rb
Normal 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
|
||||
Reference in New Issue
Block a user