ImportRegistrationCodes
struct ImportRegistrationCodes : AsyncMigrationA Migration that populates the RegistrationCode database from a registration-codes.txt
file located in the seeds/ subdirectory of the project.
- 
                  prepare(on:Asynchronous) Required by Migrationprotocol. Reads either a test or production text file in theseeds/subdirectory, converts the lines into elements of an array, then iterates over them to create newRegistrationCodemodels.Requires registration-codes.txtfile in seeds subdirectory.DeclarationSwift func prepare(on database: Database) async throwsParametersdatabaseA connection to the database, provided automatically. Return ValueVoid 
- 
                  revert(on:Asynchronous) Deletes all registration codes in the “registrationcode” table. DeclarationSwift func revert(on database: Database) async throwsParametersdatabaseA connection to the database, provided automatically. Return ValueVoid. 
 View on GitHub
            View on GitHub
           ImportRegistrationCodes Structure Reference
      ImportRegistrationCodes Structure Reference