Defaults/import fixes and ingredients sorting
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Unit < ActiveRecord::Base
|
||||
belongs_to :project, required: true
|
||||
belongs_to :project, required: false
|
||||
|
||||
validates :shortname, presence: true, uniqueness: {scope: :project_id}
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user