rails datetime_field code example
Example: rails column datetime
: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