Sha256: 38e0a445c6838e7bf9ac2f828562c5ea2caa8ddf02c7e59ffca1ae0e7499220e

Contents?: true

Size: 316 Bytes

Versions: 9

Compression:

Stored size: 316 Bytes

Contents

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

  validates :title, presence: true
  # do not validate presence of participant
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.5 app/models/activity_type.rb
think_feel_do_engine-3.22.4 app/models/activity_type.rb
think_feel_do_engine-3.22.2 app/models/activity_type.rb
think_feel_do_engine-3.22.1 app/models/activity_type.rb
think_feel_do_engine-3.22.0 app/models/activity_type.rb
think_feel_do_engine-3.21.2 app/models/activity_type.rb
think_feel_do_engine-3.21.1 app/models/activity_type.rb
think_feel_do_engine-3.21.0 app/models/activity_type.rb
think_feel_do_engine-3.20.1 app/models/activity_type.rb