when I type vapor run revert --all --yes shows an error message:
[ INFO ] Migrations complete (/Users/asanchez1/Documents/TestLang/vapor/TILApp/.build/checkouts/fluent.git-1130394678472548974/Sources/Fluent/Migration/MigrationConfig.swift:73)
[Deprecated] --option=value syntax is deprecated. Please use --option value (with no =) instead.
Usage: .build/debug/Run
Commands:
boot Boots the application’s providers.
serve (default) Begins serving the app over HTTP.
routes Displays all registered routes.
Use .build/debug/Run <command> [--help,-h] for more information on a command.
Fatal error: Error raised at top level: CommandError: Unknown command revert
id: CommandError.unknownCommand
: file /BuildRoot/Library/Caches/com.apple.xbs/Sources/swiftlang_Fall2018/swiftlang_Fall2018-1000.11.42/src/swift/stdlib/public/core/ErrorType.swift, line 191
In Chapter 18 of the RW Book, in the database seeding section (Page 285 of the new version) , I am trying to create an Admin user as written in the book, but while adding the line migrations.add(model: AdminUser.self, database: DatabaseIdentifier<AdminUser.Database>.psql) , I am getting the error Instance method 'add(model:database:)' requires that 'AdminUser' conform to 'Model'. How to rectify this?