I am needing to change a column type from text to longtext in my Rails script, but can’t find anything on how to do this.
Has anyone ran across this?
Thanks!
Dennis
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
texttype handlestinytext,text,mediumtext, andlongtextfor MySQL, if that’s what you’re using. Just specify the upper bound using:limit => ...Example:
The default value of
limitis 65535, as expected.The MySQL documentation can be found here.