8000 fix(migrations): change generated file name (#26) · adonisjs/lucid.adonisjs.com@c0823bf · GitHub
[go: up one dir, main page]

Skip to content

Commit c0823bf

Browse files
authored
fix(migrations): change generated file name (#26)
1 parent 8f7eb55 commit c0823bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

content/docs/migrations/introduction.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ You can also create a Lucid model and the migration together by running the `nod
2626
```sh
2727
node ace make:migration users
2828

29-
# CREATE: database/migrations/1630981615472_users.ts
29+
# CREATE: database/migrations/1630981615472_create_users_table.ts
3030
```
3131

3232
If you will notice, the migration filename is prefixed with some numeric value. We add the current timestamp to the filename so that the migration files are sorted in the order created.
@@ -38,7 +38,7 @@ A migration class always extends the [BaseSchema](https://github.com/adonisjs/lu
3838
- The `up` method is used to evolve the database schema further. Usually, you will create new tables/indexes or alter existing tables inside this method.
3939
- The `down` method is used to roll back the actions executed by the `up` method. For example, if the up method creates a table, the down method should drop the same table.
4040

41-
Both the methods have access to the [Schema builder](./schema_builder.md) that you can use to construct SQL DDL queries.
41+
Both methods have access to the [Schema builder](./schema_builder.md) that you can use to construct SQL DDL queries.
4242

4343
```ts
4444
import { BaseSchema } from '@adonisjs/lucid/schema'

0 commit comments

Comments
 (0)
0