Is there a DELETED table in Rails just as in SQL Server?
问题 I need to be able to do the same as demonstrated below in my rails app. As you can see, in SQL server there is a table called DELETED that stores those rows that were just deleted. source: How to create a before delete trigger in SQL Server? CREATE TRIGGER TRG_AUD_DEL ON yourTable FOR DELETE AS INSERT INTO my_audit_table (col1, col2, ...) SELECT col1, col2... FROM DELETED Applying this logic to rails, is there such a table/location to call from to get those rows just as they are deleted in