Sha256: 466a46874185d79833882df9e32757c8a6c88605fa36447f8aa3d77ad502cef4
Contents?: true
Size: 622 Bytes
Versions: 23
Compression:
Stored size: 622 Bytes
Contents
class EventImportResult < ActiveRecord::Base default_scope :order => 'event_import_results.id' scope :file_id, proc{|file_id| {:conditions => {:event_import_file_id => file_id}}} scope :failed, where(:event_id => nil) belongs_to :event_import_file belongs_to :event validates_presence_of :event_import_file_id end # == Schema Information # # Table name: event_import_results # # id :integer not null, primary key # event_import_file_id :integer # event_id :integer # body :text # created_at :datetime # updated_at :datetime #
Version data entries
23 entries across 23 versions & 1 rubygems