Category Archives: Rails

Ruby and Ruby on Rails version compatibility

I have recently been planning upgrades for an application which runs on both an old version of Ruby on Rails and an old version of Ruby. The recommended upgrade path for rails is to upgrade through each version, rather than … Continue reading

Posted in Rails | 1 Comment

The problem with renaming a model in Rails

So you’ve decided to rename a model in Rails. What could be simpler than renaming and editing a bunch of files? You make your edits in development, run migrations and so on. There’s a potential issue you might hit though. … Continue reading

Posted in Rails | Leave a comment

Renaming a model in Rails

When renaming a model in Rails (2.3), there are a range of files you may need to change: Create a migration to rename the database table: (rename_table :oldname, :newname) Rename the model. Edit any associations in other models. Rename the … Continue reading

Posted in Rails | 1 Comment