Module: PgSaurus::SchemaDumper::SchemaMethods

Included in:
PgSaurus::SchemaDumper
Defined in:
lib/pg_saurus/schema_dumper/schema_methods.rb

Overview

Extends ActiveRecord::SchemaDumper class to dump schemas other than "public" and tables from those schemas.

Instance Method Summary collapse

Instance Method Details

#header(stream) ⇒ Object



6
7
8
9
# File 'lib/pg_saurus/schema_dumper/schema_methods.rb', line 6

def header(stream)
  super
  dump_all_schemas(stream)
end

#schemasObject



20
21
# File 'lib/pg_saurus/schema_dumper/schema_methods.rb', line 20

def schemas(...)
end

#within_each_schemaObject



13
14
15
# File 'lib/pg_saurus/schema_dumper/schema_methods.rb', line 13

def within_each_schema
  yield
end