Skip to content

Commit

Permalink
fix(migrate): type Migration should be used as a value rather than a …
Browse files Browse the repository at this point in the history
…pointer
  • Loading branch information
mlevieux committed Jul 4, 2022
1 parent 46b475f commit fb43935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions migrate/migration.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ type Migration struct {
Down MigrationFunc `bun:"-"`
}

func (m *Migration) String() string {
func (m Migration) String() string {
return m.Name
}

func (m *Migration) IsApplied() bool {
func (m Migration) IsApplied() bool {
return m.ID > 0
}

Expand Down

0 comments on commit fb43935

Please sign in to comment.