Commit 6fdc3dd7 authored by chia-lin.lin's avatar chia-lin.lin 💬
Browse files

rm required from formula

parent 1d3e7593
......@@ -7,7 +7,7 @@ class Sample < ApplicationRecord
belongs_to :user
validates :user_id, presence: true
validates :name, presence: true, length: { maximum: 50 }
validates :formula, presence: true, length: { maximum: 140 }
validates :formula, length: { maximum: 140 }
validates :status, presence: true, length: { maximum: 140 }
before_save :calculate_percentage
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment