私が論理削除で使うライブラリは専らkakurenbo-putiです。 ActiveRecordと疎結合なので、ハマることが少ないです。 今回はDeviseと合わせてみました。 kakurenbo-putiを使えるようにする Gemfileに以下を追加します。 gem 'kakurenbo-puti' bundle installしてから、カラムを追加しましょう。 rails g migration AddSoftDestroyedAtToUser soft_destroyed_at:datetime:index bin/rake db:migrateを実行します。 あとは、Modelにsoft_deletableを入れるだけ。 class User < ActiveRecord::Base soft_deletable end こうすると、論理削除用のメソッドが生えてきます。 emailの