📜  rails column datetime - Ruby 代码示例

📅  最后修改于: 2022-03-11 15:04:45.600000             🧑  作者: Mango

代码示例1
:datetime
# Stores Date and Time formatted YYYY-MM-DD HH:MM:SS
# Useful for columns like birth_date

:timestamp
# Stores number of seconds since 1970-01-01
# Useful for columns like updated_at, created_at

:date
# Stores Date

:time
# Stores Time