You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering how are you supposed to use Article and Tag if you declare them inside the migration, do you re-declare them outside of the migration or what is your approach?
I was wondering how are you supposed to use Article and Tag if you declare them inside the migration, do you re-declare them outside of the migration or what is your approach?
Hey :) Thanks for your feedback. You declare them both in your migration and in your model. This way, your migrations are not tied with your model.
Hey.
I'll give that a try when I'll have time, but at the time of writing this did work. I'm surprised that json.RawMessage would work. Under the hood, postgres.Jsonb is effectively a json.RawMessage but it also implements the sql.Scanner and driver.Valuer interfaces so that gorm can effectively use this type as you can see in the source code of Gorm
Thanks a lot for your feedback on my post!
This is the comment issue for the Gorm Gotchas article.
The text was updated successfully, but these errors were encountered: