Sha256: 39b3ba74d1abe95fd44828a30de2871fa4e089d2404bcf113e9715e32752b1c1
Contents?: true
Size: 610 Bytes
Versions: 1
Compression:
Stored size: 610 Bytes
Contents
class EventImportResult < ApplicationRecord 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 :bigint not null, primary key # event_import_file_id :bigint # event_id :bigint # body :text # created_at :datetime not null # updated_at :datetime not null #
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
enju_event-0.4.0.rc.1 | app/models/event_import_result.rb |