Sha256: 141342cae71b1f0f5fa7308c3d7ecdcc2504cee284f1dc38779d6d8dc8babaa2

Contents?: true

Size: 765 Bytes

Versions: 12

Compression:

Stored size: 765 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

12 entries across 12 versions & 1 rubygems

Version Path
enju_biblio-0.1.0.pre55 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre54 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre53 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre52 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre51 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre50 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre49 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre48 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre47 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre46 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre45 app/models/agent_import_result.rb
enju_biblio-0.1.0.pre44 app/models/agent_import_result.rb