Fixes Postgres schema creation with sql dump in edge cases when some elements like tables, indices or columns contains the default schema name. For example, a table called "public_tokens" with a foreign key when the default schema is also named "public".
The following is the error without the patch:
ActiveRecord::StatementInvalid:
PG::SyntaxError: ERROR: syntax error at or near "_tokens"
LINE 136: CREATE TABLE "db37"."db37"_tokens (
Fixes Postgres schema creation with sql dump in edge cases when some elements like tables, indices or columns contains the default schema name. For example, a table called "public_tokens" with a foreign key when the default schema is also named "public".
The following is the error without the patch:
Related to: https://github.com/influitive/apartment/pull/537