migrate to ruby on rails