Sha256: 99c83e9990a064c7bba2657e1a82a4f1765dadf02844a3848d9943b15a52122e

Contents?: true

Size: 381 Bytes

Versions: 4

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true
# The name given to an Activity. Can be private to a Participant or public.
class ActivityType < ActiveRecord::Base
  MAX_TITLE_LENGTH = 1000
  belongs_to :participant
  has_many :activities, dependent: :restrict_with_exception

  validates :title, presence: true, length: { maximum: MAX_TITLE_LENGTH }
  # do not validate presence of participant
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/models/activity_type.rb
think_feel_do_engine-3.22.8 app/models/activity_type.rb
think_feel_do_engine-3.22.7 app/models/activity_type.rb
think_feel_do_engine-3.22.6 app/models/activity_type.rb