Create Migration

We will go through creating a migration using the Nessie CLI

Create migration#

We will start by creating a migration, using the folder from the last lesson.

Creating a migration is simple. Nessie has a couple of commands built-in, and one of them is make:migration (or make as a shorter alias of the same command). This command takes a name as a parameter and creates a migration file with the same name.

We will call our migration create_initial_table.

After executing this command, you will see the migration file in your migration folder.

 

This page is a preview of Build and deploy a REST API with Deno

Start a new discussion. All notification go to the author.