On Jul 29, 12:37 pm, Scott LaBounty <[email protected]> wrote:
> Would the difference only show up if I moved to a different database, say
> MySQL or similar?

Yes.  On MySQL, String is varchar(255), while String :text=>true is
text.  On PostgreSQL, String is text and String :text=>false is varchar
(255).  This is because MySQL's text type has limitations most users
would find unacceptable as the standard string type (e.g. you can't
set a default).  On PostgreSQL, text doesn't have additional
restrictions over varchar(255), so it is used as the additional
capacity makes it a better fit for Ruby's String class (which doesn't
have a length restriction of 255 characters).

Jeremy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sequel-talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sequel-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to