migrated to rails 4