class Execution < ApplicationRecord belongs_to :command has_many :actions def execution Execution.find(value) end end