Sha256: bea6d3398ece3bf4a9824e5a6e08f030f7276f2f21073c746b48372771fc5bc5
Contents?: true
Size: 546 Bytes
Versions: 14
Compression:
Stored size: 546 Bytes
Contents
class UserImportResult < ApplicationRecord scope :file_id, proc{ |file_id| where(user_import_file_id: file_id) } scope :failed, -> { where(user_id: nil) } belongs_to :user_import_file belongs_to :user, optional: true end # == Schema Information # # Table name: user_import_results # # id :integer not null, primary key # user_import_file_id :integer # user_id :integer # body :text # created_at :datetime # updated_at :datetime # error_message :text #
Version data entries
14 entries across 14 versions & 1 rubygems