-
Archives
- January 2020
- August 2018
- August 2017
- July 2015
- February 2015
- February 2013
- December 2011
- August 2011
- May 2011
- April 2011
- January 2011
- November 2010
- September 2010
- August 2010
- January 2010
- November 2009
- September 2009
- July 2009
- June 2009
- May 2009
- July 2008
- June 2008
- February 2008
- January 2008
- December 2007
- October 2007
- July 2006
- January 2002
- November 2001
- October 2001
- September 2001
- February 2001
- January 2001
-
Meta
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
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