rails/rails — comment on commit ecf039fc05ac32b7a8cbd005dd4723d7eadc61c0
File: activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 692
By cpjolicoeur:

Is there a reason the #table_exists? method for the Postgres adapter doesnt use the same tables.include?(name) method to check if the table exists like the base and other adapters do?

My specific issue is this. I am manually setting the AR schema search path and then trying to load the rails db/schema file to populate said schema with tables. #table_exists? is returning true even though the schema has no tables because this method isn't respecting the #schema_search_path setting of AR::Base.connection