update to rails 4.1
Migrate to the new ActiveRecord API