Class: Group
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- Group
- Defined in:
- app/models/group.rb
Overview
Instance Attribute Summary collapse
-
#title ⇒ String
Group title.
Instance Attribute Details
#title ⇒ String
Returns group title.
11 12 13 14 15 16 |
# File 'app/models/group.rb', line 11 class Group < ApplicationRecord has_and_belongs_to_many :users has_many :events, dependent: :restrict_with_error validates :title, presence: true end |