Sha256: a37b8f85ac8bdf0ce265196bfd078c1af110b1108d65de3b9ace73522ff4ca69

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

# 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
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
legion-data-0.1.1 lib/legion/data/models/task.rb
legion-data-0.1.0 lib/legion/data/models/task.rb