1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/models/regional_office.rb

17 lines
327 B
Ruby

# frozen_string_literal: true
class RegionalOffice < ApplicationRecord
################
# Associations #
################
belongs_to :federal_subject
###############
# Validations #
###############
validates :federal_subject, uniqueness: true
validates :name, good_small_text: true, uniqueness: true
end