Worked around a bug in paperclip gem for generating models and migrations