migrate to rails 3.1