Where do the created_at and updated_at columns come from?

前端 未结 3 446
失恋的感觉
失恋的感觉 2021-01-04 01:59

All the tables in the database created by a rails application seem to have created_at and updated_at columns. What creates these? Are they optional, or does something inte

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-04 02:36

    Adding to what Octopus said, they are optional and are used to track the record creation and updating date time in the corresponding tables.

提交回复
热议问题