class Survey < ApplicationRecord
  has_many :survey_trip_stops

  validates :date, presence: true
  validates :shift, presence: true
end

class Survey < ApplicationRecord
  has_many :survey_trip_stops
  accepts_nested_attributes_for :survey_trip_stops

  validates :date, presence: true
  validates :shift, presence: true
end

Allow nested attributes to be updated
Allow nested attributes to be updated
