fixes failing require and postgres and sqlite3 test delete_all test

* this file composite_primary_keys/active_model/dirty does not exist
* Checking the line exception message is not really ideal as it will
depend on each drivers' implementation