Like in rails when we create a migration, rails itself add a 2 columns created_at and updated_at and it is automatically updated in the database.
How to do this in python using alembic? Like to automate this whenever we create a model.
Tried creating mixins and it workded, but still we have to add these column manually in migration. It is not like we added a migration and mentioned a model and it creates the created_at and updated_at columns automatically
Manu shalta is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.