1
0

Adding MeasurementRoutine selection/editing support

This commit is contained in:
cryptogopher
2020-04-02 02:23:53 +02:00
parent 0c724ed63f
commit 9f63c14f8a
15 changed files with 94 additions and 21 deletions

View File

@@ -5,6 +5,7 @@ class Measurement < ActiveRecord::Base
attrs['name'].blank?
}
after_destroy { self.routine.destroy if self.routine.measurements.empty? }
has_one :project, through: :routine
belongs_to :source, required: false