Commit 94f20673 authored by pierre.tremouilhac's avatar pierre.tremouilhac
Browse files

Merge branch '30-submit-analysis-without-chemical-formula' into 'init19'

Resolve "Submit analysis without chemical formula"

Closes #30

See merge request !22
parents 1d3e7593 6fdc3dd7
......@@ -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