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

21 lines
438 B
Ruby

# frozen_string_literal: true
class RegionalOffice < ApplicationRecord
################
# Associations #
################
belongs_to :country_state
has_many :membership_apps, through: :country_state
has_many :people, dependent: :restrict_with_exception
has_many :relationships, dependent: :restrict_with_exception
###############
# Validations #
###############
validates :country_state, uniqueness: true
end