mirror of
https://github.com/internetee/registry.git
synced 2025-05-19 10:49:39 +02:00
4 lines
127 B
Ruby
4 lines
127 B
Ruby
class Setting < ActiveRecord::Base
|
|
belongs_to :setting_group
|
|
validates :code, uniqueness: { scope: :setting_group_id }
|
|
end
|