Begin working on rails 3.1 upgrade. ActiveRecord calls.