Sha256: a1b619f107d3494c2a79066cdd79b3d8d9721c135b5909c888f756bff1dc9cd4

Contents?: true

Size: 292 Bytes

Versions: 13

Compression:

Stored size: 292 Bytes

Contents

# frozen_string_literal: true
# The assignment of a Coach (User) to a Participant.
class CoachAssignment < ActiveRecord::Base
  belongs_to :participant
  belongs_to :coach, class_name: "User"

  validates :coach, :participant, presence: true

  delegate :email, to: :coach, prefix: false
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/models/coach_assignment.rb
think_feel_do_engine-3.22.8 app/models/coach_assignment.rb
think_feel_do_engine-3.22.7 app/models/coach_assignment.rb
think_feel_do_engine-3.22.6 app/models/coach_assignment.rb
think_feel_do_engine-3.22.5 app/models/coach_assignment.rb
think_feel_do_engine-3.22.4 app/models/coach_assignment.rb
think_feel_do_engine-3.22.2 app/models/coach_assignment.rb
think_feel_do_engine-3.22.1 app/models/coach_assignment.rb
think_feel_do_engine-3.22.0 app/models/coach_assignment.rb
think_feel_do_engine-3.21.2 app/models/coach_assignment.rb
think_feel_do_engine-3.21.1 app/models/coach_assignment.rb
think_feel_do_engine-3.21.0 app/models/coach_assignment.rb
think_feel_do_engine-3.20.1 app/models/coach_assignment.rb