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 256B

1234567891011
  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. validates :name, presence: true
  7. validates :author, presence: true
  8. end