Sha256: 7846db98ccd5a4e2cdefaf4fe9710842efd3c211bab5b9230bbf344b5f8d083a

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

# == 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
#

class Import < ActiveRecord::Base
  include Basepack::Import::ModelDragonfly

  belongs_to :user, inverse_of: :imports

  handle_asynchronously :import_data

  RailsAdmin.config do
    Basepack::Utils.model_config(Import).show.field :user
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
basepack-0.0.2 lib/generators/basepack/templates/import.rb