Module: Torque::PostgreSQL::Adapter::SchemaDumper
- Defined in:
- lib/torque/postgresql/adapter/schema_dumper.rb
Instance Method Summary collapse
-
#dump(stream) ⇒ Object
:nodoc:.
-
#extensions(stream) ⇒ Object
:nodoc:.
-
#schema_type(column) ⇒ Object
Translate
:enum_set
into:enum
.
Instance Method Details
#dump(stream) ⇒ Object
:nodoc:
7 8 9 10 11 12 13 |
# File 'lib/torque/postgresql/adapter/schema_dumper.rb', line 7 def dump(stream) # :nodoc: @connection.dump_mode! super @connection.dump_mode! stream end |
#extensions(stream) ⇒ Object
:nodoc:
15 16 17 18 |
# File 'lib/torque/postgresql/adapter/schema_dumper.rb', line 15 def extensions(stream) # :nodoc: super user_defined_schemas(stream) end |
#schema_type(column) ⇒ Object
Translate :enum_set
into :enum
21 22 23 |
# File 'lib/torque/postgresql/adapter/schema_dumper.rb', line 21 def schema_type(column) column.type == :enum_set ? :enum : super end |