I built my rails app with sqlite and without specifying any db field sizes, Is my app now foobared for production?

Posted by Tim Santeford on Stack Overflow See other posts from Stack Overflow or by Tim Santeford
Published on 2010-12-29T07:32:01Z Indexed on 2010/12/29 7:54 UTC
Read the original article Hit count: 161

I've been following a lot of good tutorials on building rails apps but I seem to be missing the whole specifying and validating db field sizes part. I love not needing to have to think about it when roughing out an app (I would have never done this with a PHP or ASP.net app). However, now that I'm ready to go to production, I think I might have done myself a disservice by not specifying field sizes as I went. My production db will be MySQL. What is the best practice here? Do I need to go through all of my migration files and specify sizes, update all the models with validation, and update all my form partial views with input max widths? or am I missing a critical step in my development process?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about database-design