Module: PgPower::SchemaDumper::SchemaMethods
- Included in:
- PgPower::SchemaDumper
- Defined in:
- lib/pg_power/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
-
#header_with_schemas(stream) ⇒ Object
Dump create schema statements.
-
#tables_with_schemas(stream) ⇒ Object
-
Dumps schemas.
-
Instance Method Details
#header_with_schemas(stream) ⇒ Object
Dump create schema statements
5 6 7 8 9 |
# File 'lib/pg_power/schema_dumper/schema_methods.rb', line 5 def header_with_schemas(stream) header_without_schemas(stream) schemas(stream) stream end |
#tables_with_schemas(stream) ⇒ Object
-
Dumps schemas.
-
Dumps tables from public schema using native #tables method.
-
Dumps tables from schemas other than public.
14 15 16 17 |
# File 'lib/pg_power/schema_dumper/schema_methods.rb', line 14 def tables_with_schemas(stream) tables_without_schemas(stream) non_public_schema_tables(stream) end |