Class: ParticipantImport
- Inherits:
-
ApplicationRecord
- Object
- ActiveRecord::Base
- ApplicationRecord
- ParticipantImport
- Includes:
- PgSearch
- Defined in:
- api/app/models/participant_import.rb
Overview
Participant imports represent a list of participants and their demographics given to RedJade by a client in order to possibly add participants to an event. Provided either from a the API or from a file uploaded from the UI.) They can exist apart from being applied to an event and are therefore not necessarily synced with the event yet. They are applied to an event by creating a participant import action.
- [String]
document_file_name
- [String]
document_content_type
- [Integer]
document_file_size
- [DateTime]
document_updated_at
- [Integer]
company_id
, null: false - [Integer]
created_by_id
, null: false - [DateTime]
created_at
, null: false - [Jsonb]
data
- [Integer]
import_type
, null: false - [String]
created_by_type
- [Integer]
event_id
, null: false - [Boolean]
match_name
, default: false, null: false
Constant Summary collapse
- CACHE_KEY_PREFIX =
'participant_import_'
Class Method Summary collapse
Instance Method Summary collapse
- #cache_key ⇒ Object
- #delete_cache ⇒ Object
- #get_file ⇒ Object
- #name ⇒ Object
- #parser ⇒ Object
- #parser_from_cache ⇒ Object
- #set_cache(data) ⇒ Object