News for hackers. Stuff that matters.
Re:Five Common Rails Mistakes by joevandyk on Sunday May 06, 2012 @02:33PM (#3935860)
varchar is an alias for "character varying", which is exactly the same as text.

I use both varchar and text. varchar for things that should be one line (i.e. a username). text for things that might be multiple lines. formtastic will show a html input field for varchar columns and a textarea for text columns.

(of course, you can insert paragraphs into the varchar columns, but it's a form of documentation)

There are no comments on this comment yet.