1
0

Defaults/import fixes and ingredients sorting

This commit is contained in:
cryptogopher
2019-09-23 00:15:40 +02:00
parent 3ebc2f58d0
commit 9cbd540c43
4 changed files with 9 additions and 6 deletions

View File

@@ -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