Upgraded to rails 4 to use certain Postgresql features.