saving before migration to Rails4