Posted by Rob Anderton on August 24th, 2008 @ 11:11 – 4 comments
Updated on August 27th, 2008 @ 10:54
Tagged with patch
Did you know ActiveRecord includes support for aggregations? If you did, have you ever used them? Despite being part of Rails from the start composed_of tends to lurk in the shadows while newer features like named_scope steal the limelight. It’s time to give composed_of some love again!
Read more of this entry
Posted by Rob Anderton on June 2nd, 2008 @ 15:23 – 3 comments
Updated on June 10th, 2008 @ 12:12
Tagged with patch
Ok, so I’m starting a new Rails application, I’ve spent some time refining my database, I’ve considered storage requirements and performance when choosing the data types for my fields and now I’m ready to create some migrations to implement my design.
And then I’m reminded that, lovely though Rails migrations are, there are two things that really bug me about them: they create signed primary keys and they don’t allow me to easily create unsigned integer columns.
It’s been discussed before, dismissed as an ‘uncommon requirement’ (probably because MySQL is, as far as I know, the only database that uses unsigned integers) and, as far as I can tell, not a lot more has happened. So, while sat out in the garden, enjoying a sunny Saturday afternoon, I grabbed edge Rails from GitHub and decided I’d see if I could do something about it (how’s that for geekyness?!)
Read more of this entry
Posted by Rob Anderton on November 19th, 2007 @ 15:47 – 2 comments
Updated on June 10th, 2008 @ 12:16
Tagged with patch
I decided this morning that I’d take the time to put together a few of the patches for Mephisto that I wrote while creating this site. They’ve been tested with edge Mephisto (I grabbed revision 3037 from svn) and Rails 2.0 RC1. When I first tried to run the tests I got this error: alias_method: undefined method failure.message for class Spec::Watchers::Have (NoMethodError). This turned out to be an incompatibility between RSpec and Rails 2.0 and simply updating the RSpec plugins to their edge versions fixed the problem.
Read more of this entry