I'm trying to generate a migration from a model using the command - "aqueduct db generate".
This is the model "request.dart" under lib > model (where i have the other models as well which were already migrated without any issues) :
import 'package:dbapi/dbapi.dart';
class Request extends ManagedObject<_Request> implements _Request {}
class _Request {
@managedPrimaryKey
int index;
String description;
}
It is however creating an empty migration because its not able to recognize the new model-"Request". Below is the output from "aqueduct db generate"
-- Aqueduct CLI Version: 2.5.0+1
-- Aqueduct project version: 2.5.0+1
-- Replaying migration files...
Replaying version 1
Replaying version 2
Replaying version 3
-- The following ManagedObject<T> subclasses were found:
Question
UserProfile
* If you were expecting more declarations, ensure the files are visible in the application library file.
-- Created new migration file (version 4).
note: The new model "request.dart" has the same file permissions as the previous models that I could migrate.
Has anyone else run into the same issue? Appreciate the help !