Sha256: 1e3545d0db4c3d2b6263d53803a78f13a00010319fa49eb3ec32ea0380ea1902

Contents?: true

Size: 394 Bytes

Versions: 14

Compression:

Stored size: 394 Bytes

Contents

# A Coach Assignment is the relationship between a participant
# and which coach he/she is assigned to.  However, please keep
# in mind that only one coach is tied to each participant
# However, a coach could have many participants
class CoachAssignment < ActiveRecord::Base
  belongs_to :coach, class_name: "User"
  belongs_to :participant

  validates :coach, :participant, presence: true
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
think_feel_do_dashboard-1.2.1 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.2.0.beta1 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.21 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.20 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.19 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.18 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.17 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.16 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.15 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.14 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.13 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.12 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.11 spec/dummy/app/models/coach_assignment.rb
think_feel_do_dashboard-1.1.10 spec/dummy/app/models/coach_assignment.rb