Fix regression from upgrading to Rails 4.1.. Ideally should be sorted in the DB though. :/