migrating to rails 4