adonis make migration 1

adonis make migration

adonis make:migration

Here is what the above code is Doing:
1. We are importing the Schema class from the @adonisjs/lucid/build/src/Schema file.
2. We are creating a new class called UserSchema that extends the Schema class.
3. We are defining the up method, which is used to make changes to the database.
4. We are defining the down method, which is used to undo any changes made by the up method.

Similar Posts