1
0

Added: test_create_binding_target_when_binding_goal_does_not_exist

This commit is contained in:
cryptogopher
2020-08-22 16:11:43 +02:00
parent d8a8d9f75e
commit 8b43f22e66
3 changed files with 26 additions and 7 deletions

View File

@@ -7,5 +7,6 @@ class MeasurementRoutine < ActiveRecord::Base
class_name: 'Exposure', extend: BodyTracking::TogglableExposures
has_many :quantities, -> { order "lft" }, through: :readout_exposures
# TODO: require readout_exposures to be present
validates :name, presence: true, uniqueness: {scope: :project_id}
end