lib/torque/postgresql/config.rb in torque-postgresql-2.2.4 vs lib/torque/postgresql/config.rb in torque-postgresql-2.3.0
- old
+ new
@@ -38,9 +38,22 @@
PostgreSQL.config[:irregular_models] = hash.map do |(table, model)|
[table.to_s, model.to_s]
end.to_h
end
+ # Configure multiple schemas
+ config.nested(:schemas) do |schemas|
+
+ # Defines a list of LIKE-based schemas to not consider for a multiple
+ # schema database
+ schemas.blacklist = %w[information_schema pg_%]
+
+ # Defines a list of LIKE-based schemas to consider for a multiple schema
+ # database
+ schemas.whitelist = %w[public]
+
+ end
+
# Configure associations features
config.nested(:associations) do |assoc|
# Define if +belongs_to_many+ associations are marked as required by
# default. False means that no validation will be performed