I think the proper fix here is using the proper module definition.

```ruby
module ActiveRecord
  module ConnectionAdapters
    class PostgreSQLAdapter < AbstractAdapter
    end
  end
end
```