Skip to content

Commit 8689fd2

Browse files
authored
fix: do not exclude updated_at (#473)
1 parent 1685bf2 commit 8689fd2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

storage/dial.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ func getExcludedColumns(model interface{}, includeColumns ...string) ([]string,
7373

7474
xcols := make([]string, len(cols.Cols))
7575
for n := range cols.Cols {
76+
// gobuffalo updates the updated_at column automatically
77+
if n == "updated_at" {
78+
continue
79+
}
7680
xcols = append(xcols, n)
7781
}
7882
return xcols, nil

0 commit comments

Comments
 (0)