Sha256: a64740e8614ce2c240b0fc809443541b12c5c8817f13a76744ce2545b7e2370d
Contents?: true
Size: 627 Bytes
Versions: 22
Compression:
Stored size: 627 Bytes
Contents
class AgentImportResult < ApplicationRecord default_scope { order('agent_import_results.id') } scope :file_id, proc{|file_id| where(agent_import_file_id: file_id)} scope :failed, -> { where(agent_id: nil) } belongs_to :agent_import_file belongs_to :agent, optional: true validates_presence_of :agent_import_file_id end # == Schema Information # # Table name: agent_import_results # # id :integer not null, primary key # agent_import_file_id :integer # agent_id :integer # body :text # created_at :datetime # updated_at :datetime #
Version data entries
22 entries across 22 versions & 1 rubygems