API de comptabilité horaire.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

activity.rb 272B

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