I have two fields called start_anno and termino_an, where I want to save only the year that the user will select and save to the database. But when you save the form that is processed by RAILS, it saves year, month, and day.
IwouldliketoknowifIcansaveadatetypedatainPostgresbystoringonlytheyearthroughRAILS.
IntheWebpageandbasicallyasyougetthedata
Thatinhtml.erbthecodeislikethis[]
In the database there is a table that would be the creation of user by devise.
Andinthisphotobelowarethefieldsthatareaddedtotheusertable,inwhichfollowsthefieldsstart_anandtermino_ano