API de comptabilité horaire.
Ви не можете вибрати більше 25 тем Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910
  1. class Activity < ApplicationRecord
  2. belongs_to :author, class_name: "User"
  3. has_one :joined_user_activity
  4. has_one :user, :through => :joined_user_activity
  5. has_many :tasks
  6. has_many :records
  7. validates :name, presence: true
  8. validates :author, presence: true
  9. end