Sha256: 3af995781df1b8c062cce55c9ffda6e2fc1934b1a321ad5fb4389d5b98b42c1c
Contents?: true
Size: 891 Bytes
Versions: 1
Compression:
Stored size: 891 Bytes
Contents
class ResourceImportResult < ActiveRecord::Base attr_accessible :resource_import_file_id, :manifestation_id, :item_id, :body default_scope { order('resource_import_results.id') } scope :file_id, proc{|file_id| where(resource_import_file_id: file_id)} scope :failed, -> { where(manifestation_id: nil) } scope :skipped, -> { where('error_message IS NOT NULL') } belongs_to :resource_import_file belongs_to :manifestation belongs_to :item validates_presence_of :resource_import_file_id end # == Schema Information # # Table name: resource_import_results # # id :integer not null, primary key # resource_import_file_id :integer # manifestation_id :integer # item_id :integer # body :text # created_at :datetime # updated_at :datetime # error_message :text #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_biblio-0.1.0.pre63 | app/models/resource_import_result.rb |