12345678910 |
- class Activity < ApplicationRecord
- belongs_to :author, class_name: "User"
- has_one :joined_user_activity
- has_one :user, :through => :joined_user_activity
- has_many :tasks
- has_many :records
-
- validates :name, presence: true
- validates :author, presence: true
- end
|