mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
6 lines
202 B
Ruby
6 lines
202 B
Ruby
class Setting < ActiveRecord::Base
|
|
belongs_to :setting_group
|
|
has_many :domain_statuses
|
|
has_many :domains, through: :domain_statuses
|
|
validates :code, uniqueness: { scope: :setting_group_id }
|
|
end
|