Sha256: 1c3a4124c3b55874bac882e99f8a69e2bd24a7d04a9de48cc89a2b82101f565b
Contents?: true
Size: 696 Bytes
Versions: 2
Compression:
Stored size: 696 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_biblio-0.1.0.pre58 | app/models/agent_import_result.rb |
enju_biblio-0.1.0.pre57 | app/models/agent_import_result.rb |