2021-04-22 更新前のDBの値を取得したい時に使うメソッド Ruby on Rails in_database statusカラムを未提出→提出済みに変更の場合 @order.status #⇒ 提出済み @order.status_in_database #⇒ 未提出 参考サイト api.rubyonrails.org qiita.com yucatio.hatenablog.com