migrate to rails 4