Module: PgAggregates::SchemaDumper
- Defined in:
- lib/pg_aggregates/schema_dumper.rb
Defined Under Namespace
Classes: AggregateDefinition
Instance Method Summary collapse
-
#tables(stream) ⇒ Object
Override the tables method to inject aggregate dumping after functions (handled by fx) but before tables.
Instance Method Details
#tables(stream) ⇒ Object
Override the tables method to inject aggregate dumping after functions (handled by fx) but before tables.
12 13 14 15 16 17 18 19 20 |
# File 'lib/pg_aggregates/schema_dumper.rb', line 12 def tables(stream) # Dump custom aggregates first dump_custom_aggregates(stream) stream.puts # Add a newline for separation before tables # Call the next implementation (likely fx's tables or Rails' tables) super end |