ユーザーモデルとユーザーモデルhas_oneプロファイルモデルがあります。また、user.phoneとuser.profile.phoneがありますが、user.phoneを削除したいので、user.profile.phoneのみを使用します。
user.phoneを削除する前に、user.phoneが空白でない場合は、user.phoneをuser.profile.phoneにコピーします。次にuser.phoneを削除します。
例えば:
user.phone = 123
user.profile.phone = 234
移行後:
user.phone will be removed
user.profile.phone = 123 - 234
この目的のための適切な移行は何ですか?