Sha256: 551ee4434e4cadcfaf8d4827409f8c34784c4ce17d76ebcefba6482cc08793e5
Contents?: true
Size: 831 Bytes
Versions: 45
Compression:
Stored size: 831 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) 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 not null # updated_at :datetime not null #
Version data entries
45 entries across 45 versions & 1 rubygems