lib/legion/data/models/task.rb in legion-data-0.1.1 vs lib/legion/data/models/task.rb in legion-data-0.2.0

- old
+ new

@@ -1,17 +1,18 @@ # frozen_string_literal: true module Legion module Data module Model - # Used for accessing legion.tasks class Task < Sequel::Model many_to_one :relationship one_to_many :task_log many_to_one :parent, class: self one_to_many :children, key: :parent_id, class: self many_to_one :master, class: self one_to_many :slave, key: :master_id, class: self + many_to_one :user_owner, class: Legion::Data::Model::User + many_to_one :group_owner, class: Legion::Data::Model::Group end end end end