Sha256: 2fced231ca7cea8b5d98553151287d402f1a512dd32255a4bea34c4d1cb1a8c5
Contents?: true
Size: 632 Bytes
Versions: 5
Compression:
Stored size: 632 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, optional: true validates :event_import_file_id, presence: true 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
5 entries across 5 versions & 1 rubygems