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

18 lines
327 B
Ruby
Raw Normal View History

2018-12-06 17:49:50 -05:00
# frozen_string_literal: true
2019-08-17 23:00:17 -04:00
class RegionalOffice < ApplicationRecord
2019-03-25 20:56:31 -04:00
################
# Associations #
################
2019-06-23 11:59:44 -04:00
belongs_to :federal_subject
2018-12-06 17:49:50 -05:00
2019-03-25 20:56:31 -04:00
###############
# Validations #
###############
2019-06-23 11:59:44 -04:00
validates :federal_subject, uniqueness: true
2019-08-18 01:10:11 -04:00
2019-09-30 07:51:05 -04:00
validates :name, good_small_text: true, uniqueness: true
2018-12-06 17:49:50 -05:00
end