All `has_many` associations should have a `:dependent` option specified that matches the PostgreSQL column's `ON DELETE` setting.