migration to rails 4