left4me/rails/app/models/execution.rb
mwiegand abf55c9af1
wip
2022-11-27 18:41:02 +01:00

9 lines
184 B
Ruby

class Execution < ApplicationRecord
belongs_to :command
has_many :actions
has_one :execution, ->(o){Execution.find(o.value)}
def execution
Execution.find(value)
end
end