Sha256: c79af279b5722494e6a325825dd21d537ff90e425d60c4333f3f32056661e2a8
Contents?: true
Size: 782 Bytes
Versions: 32
Compression:
Stored size: 782 Bytes
Contents
class PatronImportResult < ActiveRecord::Base attr_accessible :patron_import_file_id, :patron_id, :user_id, :body default_scope :order => 'patron_import_results.id' scope :file_id, proc{|file_id| where(:patron_import_file_id => file_id)} scope :failed, where(:patron_id => nil) belongs_to :patron_import_file belongs_to :patron belongs_to :user validates_presence_of :patron_import_file_id end # == Schema Information # # Table name: patron_import_results # # id :integer not null, primary key # patron_import_file_id :integer # patron_id :integer # user_id :integer # body :text # created_at :datetime not null # updated_at :datetime not null #
Version data entries
32 entries across 32 versions & 1 rubygems