Adonis 4.1 Models #1617
Adonis 4.1 Models
#1617
-
Hello. I was going through the documentation and found this: createdAtColumn updatedAtColumn Does this mean that we can return null from the methods above to disable Adonis from setting the creation and modified timestamp? Here is what my migration looks like:
|
Beta Was this translation helpful? Give feedback.
Answered by
thetutlage
Sep 17, 2020
Replies: 1 comment 1 reply
-
Yes. Returning |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Hiba-Ed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes. Returning
null
will tell the model that you are not usingcreated_at
andupdated_at
timestamps