This repository has been archived on 2023-03-28. You can view files and clone it, but cannot push or open issues or pull requests.
2018-12-06 22:49:50 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class RegionalOffice < ApplicationRecord
|
|
|
|
belongs_to :country_state
|
|
|
|
|
2018-12-06 23:00:15 +00:00
|
|
|
has_many :membership_apps, through: :country_state
|
|
|
|
|
2018-12-06 22:49:50 +00:00
|
|
|
validates :country_state_id, uniqueness: true
|
|
|
|
end
|