Sha256: 25b4ae6e6ca404b603b04b451ec1817244c66702a22627e292ab81573955cbff
Contents?: true
Size: 647 Bytes
Versions: 7
Compression:
Stored size: 647 Bytes
Contents
class EventImportResult < ActiveRecord::Base default_scope { order('event_import_results.id') } scope :file_id, proc{|file_id| where(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 not null # updated_at :datetime not null #
Version data entries
7 entries across 7 versions & 1 rubygems