migrate to rails4