Class: Spree::MaintenanceTasks::Upgrade::UsersToCustomers
- Inherits:
-
RakeStep
- Object
- Spree::MaintenanceTask
- RakeStep
- Spree::MaintenanceTasks::Upgrade::UsersToCustomers
- Defined in:
- app/maintenance_tasks/spree/maintenance_tasks/upgrade/users_to_customers.rb
Overview
Copies the legacy Devise user table onto the gem-owned customer model and re-points every polymorphic reference that named the old class.
Two of its parameters are questions only an operator can answer: whether a Devise pepper was ever configured (an encrypted password cannot be read without knowing, and Devise is gone by the time this runs), and what to do with source rows that cannot be copied.
Constant Summary
Constants inherited from RakeStep
Constants inherited from Spree::MaintenanceTask
Spree::MaintenanceTask::DEFAULT_BATCH_SIZE, Spree::MaintenanceTask::MAX_RUN_TIME, Spree::MaintenanceTask::RAKE_LOAD_LOCK
Instance Attribute Summary
Attributes inherited from Spree::MaintenanceTask
Method Summary
Methods inherited from RakeStep
arguments_from_environment, passes_to_environment, #process, runs_rake_task
Methods inherited from Spree::MaintenanceTask
#after_complete, api_type_for, #collection, collection_batch_size, #count, #dry_run?, find_by_api_type, find_registered, #invoke_rake_task, no_collection, #no_collection?, #process, #rake_file_defining, registered_classes, supports_dry_run, #tallies, #tally
Methods included from ApiTyped
#api_type, api_type_for, #api_typed_family, class_name_for, find, registered_class