Sha256: 6a1416870b7d87628952c5963e6ab792a622693031a0b6e5e84330d08fea77da
Contents?: true
Size: 397 Bytes
Versions: 7
Compression:
Stored size: 397 Bytes
Contents
class Group < ApplicationRecord has_many :group_people, dependent: :destroy, autosave: true has_many :people, through: :group_people belongs_to :owner, class_name: 'Person', required: false, validate: true validates :name, presence: true, length: { in: 1..254 }, format: { with: /[a-zA-Z0-9\-_\s]+/, message: 'only alphanumerics, dashes, underscores, and spaces' } end
Version data entries
7 entries across 7 versions & 1 rubygems