Class: Import

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Basepack::Import::ModelDragonfly
Defined in:
lib/generators/basepack/templates/import.rb

Overview

Schema Information

Table name: imports

id               :integer          not null, primary key
user_id          :integer
klass            :string(255)      not null
file_uid         :string(255)      not null
file_name        :string(255)
file_mime_type   :string(255)
file_size        :integer
report_uid       :string(255)
report_name      :string(255)
report_mime_type :string(255)
num_errors       :integer          default(0), not null
num_imported     :integer          default(0), not null
state            :string(255)      default("not_configured"), not null
configuration    :text
created_at       :datetime
updated_at       :datetime
action_name      :string(255)      default("import"), not null

Method Summary

Methods included from Basepack::Import::ModelDragonfly

#file_type, #import_attributes, #import_data, #import_data_csv, #import_data_xml, #importable_class, #open_file, #open_report, #save_object, #start_processing, #validate_klass_is_model