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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -