Apples and Oranges. Er, RoR and MySQL data types.

How do Ruby on Rails and MySQL data types match up?

This site has a handy chart to tell you.

For example, :boolean in a rails migration is a tinyint(1) to MySQL, and a :timestamp is a datetime.  Also included: links to ruby and MySQL docs for the relevant data types. I know, I know.  The fun never ends.

Leave a Reply