method
new
v8.1.1 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::PostgreSQL::SchemaDumper
new(connection, options = {})public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/postgresql/schema_dumper.rb, line 10
def initialize(connection, options = {})
super
@dump_schemas =
case ActiveRecord.dump_schemas
when :schema_search_path
connection.current_schemas
when String
schema_names = ActiveRecord.dump_schemas.split(",").map(&:strip)
schema_names & connection.schema_names
else
connection.schema_names
end
end