Sha256: de62d8dc226d0500c84005b603ae1547426b320fede87ee39e25012eeabf7269

Contents?: true

Size: 578 Bytes

Versions: 1

Compression:

Stored size: 578 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                  :bigint           not null, primary key
#  user_import_file_id :bigint
#  user_id             :bigint
#  body                :text
#  created_at          :datetime         not null
#  updated_at          :datetime         not null
#  error_message       :text
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_library-0.4.0.rc.1 app/models/user_import_result.rb