Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
It is impossible to do this through migration, because in the database the created_at field has no logic - it is all implemented inside the framework. Creating a column with a date through migration is elementary, but you will have to fill it in manually. Well, or specify a default value in the column.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question