Sha256: ab70f72a63b3e94a169dff6dd667f967a739c7a3aef17fb380fd14c5ca5fc9c7
Contents?: true
Size: 547 Bytes
Versions: 6
Compression:
Stored size: 547 Bytes
Contents
class UserImportResult < ActiveRecord::Base 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
6 entries across 6 versions & 1 rubygems