DatabaseCleaner / database_cleaner-active_record

Strategies for cleaning databases using ActiveRecord. Can be used to ensure a clean state for testing.
MIT License
64 stars 63 forks source link

Delete cascade #68

Closed SampsonCrowley closed 2 years ago

SampsonCrowley commented 2 years ago

Is there a specific reason that truncate is the only option that allows cascading?

Why is there no simple DELETE CASCADE statement (which is a lot safer as far as not deleting records that aren't supposed to be)?

SampsonCrowley commented 2 years ago

Closing, because this seems better suited to the google group