Sha256: 076befa223547aed2b1b66b355b62785b349372175e0306f97c6a17e32d9e302

Contents?: true

Size: 770 Bytes

Versions: 1

Compression:

Stored size: 770 Bytes

Contents

class AgentImportResult < ActiveRecord::Base
  attr_accessible :agent_import_file_id, :agent_id, :user_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
  belongs_to :user

  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
#  user_id               :integer
#  body                  :text
#  created_at            :datetime         not null
#  updated_at            :datetime         not null
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre43 app/models/agent_import_result.rb