Skip to content

Commit 0c65e36

Browse files
committed
Create apartment-postgres-patch.rb
1 parent ab96289 commit 0c65e36

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# See https://github.com/rails-on-services/apartment/issues/322
2+
3+
require "apartment/adapters/postgresql_adapter"
4+
5+
Apartment::Adapters::PostgresqlSchemaFromSqlAdapter::PSQL_DUMP_BLACKLISTED_STATEMENTS =
6+
(Apartment::Adapters::PostgresqlSchemaFromSqlAdapter::PSQL_DUMP_BLACKLISTED_STATEMENTS + [/\\restrict/i, /\\unrestrict/i]).freeze

0 commit comments

Comments
 (0)