Migrate to rails4.1