haxney/railskating

View on GitHub
app/models/sub_round.rb

Summary

Maintainability
A
0 mins
Test Coverage
class SubRound < ActiveRecord::Base
  belongs_to :round
  belongs_to :sub_event
  has_many :marks, dependent: :destroy
  has_many :couples, -> { distinct.order(number: :asc) }, through: :round

  has_one :dance, through: :sub_event
end