haxney/railskating

View on GitHub
app/models/adjudicator.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Adjudicator < ActiveRecord::Base
  has_many :marks
  belongs_to :user
  belongs_to :competition

  # The rounds which this judge scored.
  has_and_belongs_to_many :rounds, -> { uniq }
  before_destroy { rounds.clear }
end