Sha256: bb4e9d42538291a79ea654f026c88eaeb0abbdbddf14d857b8b131637efef287
Contents?: true
Size: 612 Bytes
Versions: 24
Compression:
Stored size: 612 Bytes
Contents
class AgentImportResult < ActiveRecord::Base 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 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
24 entries across 23 versions & 2 rubygems