Sha256: afbdcee4e51ac01b43761d2c0de48bad2910a823c6fbfabb6e93b826c3a7077a

Contents?: true

Size: 377 Bytes

Versions: 12

Compression:

Stored size: 377 Bytes

Contents

module ForemanTasks
  class RemoteTask < ApplicationRecord
    attr_accessor :result

    belongs_to :task, :class_name  => 'ForemanTasks::Task',
                      :primary_key => :external_id,
                      :foreign_key => :execution_plan_id,
                      :inverse_of  => :remote_tasks

    scope :triggered, -> { where(:state => 'triggered') }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
foreman-tasks-0.14.6 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.15.0 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.14.5 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.14.4 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.14.3 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.14.2 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.14.1 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.14.0 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.13.4 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.13.3 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.13.2 app/models/foreman_tasks/remote_task.rb
foreman-tasks-0.13.1 app/models/foreman_tasks/remote_task.rb