ruby on rails 3 - LONGTEXT valid in migration for PGSQL and MySQL -
i developing ruby on rails application stores lot of text in longtext column. noticed when deployed heroku (which uses postgresql) getting insert exceptions due 2 of column sizes being large. there special must done in order tagged large text column type in postgresql?
these defined "string" datatype in rails migration.
if want longtext datatype in postgresql well, create it. domain do:
create domain longtext text; create table foo(bar longtext);
Comments
Post a Comment