Sprankelprachtig aan/afmeldsysteem

default_subgroup.rb 190B

1234567
  1. class DefaultSubgroup < ApplicationRecord
  2. belongs_to :group
  3. validates :name, presence: true, uniqueness: { scope: :group, case_sensitive: false }
  4. validates :group, presence: true
  5. end