Improved docs
This commit is contained in:
parent
f2882d0b5d
commit
cc1f25c683
|
@ -32,6 +32,9 @@ date +%Y%m%d%H%M%S
|
||||||
New migrations should be added via the `init()` function to the `migrations` variable.
|
New migrations should be added via the `init()` function to the `migrations` variable.
|
||||||
All migrations are sorted before being executed, since `init()` does not guarantee the order.
|
All migrations are sorted before being executed, since `init()` does not guarantee the order.
|
||||||
|
|
||||||
|
When you're adding a new struct, you also need to add it to the `models.GetTables()` function
|
||||||
|
to ensure it will be created on new installations.
|
||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
```go
|
```go
|
||||||
|
|
Loading…
Reference in New Issue
Block a user