added correct activerecord adapter_type call to solve failure