Just wandering if anyone can tell me how to format date when writing
test data to upload to the db via a migration.
ie, to match the date migration column format
thanks
Just wandering if anyone can tell me how to format date when writing
test data to upload to the db via a migration.
ie, to match the date migration column format
thanks
used scaffold to work it out.
‘2002-09-21’ if anyone is wondering
I believe you are referencing datetime? If so, take a look at:
http://dev.mysql.com/doc/refman/5.0/en/datetime.html
YYYY-MM-DD HH:MM:SS
HTH,
Ryan
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs