Skip to content

Instance Method

prepare(on:)

Called when a migration is executed.
func prepare(on database: any Database) -> EventLoopFuture<Void>

Parameters

database

Database to run the migration on,

Return Value

An asynchronous Void.