Sha256: ce7e9b77fdb254504c4a8965a0e600f1d83fefa7b305620689cdf69bc0b79183
Contents?: true
Size: 707 Bytes
Versions: 4
Compression:
Stored size: 707 Bytes
Contents
class AgentImportResult < ActiveRecord::Base attr_accessible :agent_import_file_id, :agent_id, :body 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 not null # updated_at :datetime not null #
Version data entries
4 entries across 4 versions & 1 rubygems