30-50% off hundreds of digital assets! WordPress themes, video, music and more 30-50% Off Go to Sale
by
Lessons:19Length:2.3 hours

2.9 Paranoia

When you need something to prevent your data from being destroyed, Paranoia might be a justified response. In this lesson, I’ll show you how to use Paranoia to protect your application data from being deleted from your database. Active Record will be modified so that destroying a record causes it to be "soft deleted”—a special deleted_at field will be set, and the record will be hidden from the rest of your app.

Related Links