Sha256: 1afaedaf6d92bd2d39c748fb9393994b4991c502a4287a31631a1452d8723764

Contents?: true

Size: 588 Bytes

Versions: 1

Compression:

Stored size: 588 Bytes

Contents

class UserImportResult < ActiveRecord::Base
  default_scope { order('user_import_results.id') }
  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
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         not null
#  updated_at          :datetime         not null
#

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enju_leaf-1.1.0.rc17 app/models/user_import_result.rb