Sha256: 7b3a8592760fc1e30ced881a5d21dd5e1fa0fd9ef174fe8f2bff1da7c97d68ff

Contents?: true

Size: 400 Bytes

Versions: 7

Compression:

Stored size: 400 Bytes

Contents

# frozen_string_literal: true

module Legion
  module Data
    module Model
      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
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
legion-data-1.2.0 lib/legion/data/models/task.rb
legion-data-1.1.5 lib/legion/data/models/task.rb
legion-data-1.1.4 lib/legion/data/models/task.rb
legion-data-java-1.1.3 lib/legion/data/models/task.rb
legion-data-1.1.3 lib/legion/data/models/task.rb
legion-data-java-1.1.2 lib/legion/data/models/task.rb
legion-data-1.1.2 lib/legion/data/models/task.rb