Show data in Edit

This commit is contained in:
Phyo
2017-09-06 17:01:33 +06:30
parent f56b7ab26e
commit 4ca3b708c4
4 changed files with 59 additions and 17 deletions

View File

@@ -1,5 +1,5 @@
class Promotion < ApplicationRecord
validates_presence_of :promo_code,:promo_start_date,:promo_end_date,:promo_start_hour,:promo_end_hour,:promo_day,:promo_type,:original_product,:min_qty
validates_presence_of :promo_code,:promo_start_date,:promo_end_date,:promo_start_hour,:promo_end_hour,:promo_type,:original_product,:min_qty
has_many :promotion_products