supercaracal/japan-masters-swimming

View on GitHub
app/models/swimmer.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Swimmer < ApplicationRecord
  belongs_to :team
  has_many :results, dependent: :restrict_with_exception

  validates :name, presence: true, uniqueness: { scope: :team }, length: { maximum: 255 }
end