Sha256: 15ad997e3049b24f895e7ca901044673e230c5fec2411186a2c96599f2aa86f2
Contents?: true
Size: 812 Bytes
Versions: 24
Compression:
Stored size: 812 Bytes
Contents
class ResourceImportResult < ActiveRecord::Base 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
24 entries across 23 versions & 2 rubygems