Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
if you want to explicitly set the number of migrations to run, the README.md needs a correction, there should "Steps()" and not Step()
  • Loading branch information
adityassharma-ss authored Jun 4, 2024
1 parent 04b36eb commit da72428
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ func main() {
m, err := migrate.NewWithDatabaseInstance(
"file:///migrations",
"postgres", driver)
m.Up() // or m.Step(2) if you want to explicitly set the number of migrations to run
m.Up() // or m.Steps(2) if you want to explicitly set the number of migrations to run
}
```

Expand Down

0 comments on commit da72428

Please sign in to comment.