Module: PgTypes::SchemaDumper

Defined in:
lib/pg_types/schema_dumper.rb

Defined Under Namespace

Classes: TypeDefinition

Instance Method Summary collapse

Instance Method Details

#tables(stream) ⇒ Object

Override the types method from ActiveRecord’s PostgreSQL schema dumper This will run at the right time in the schema dump process (after extensions, before tables)



10
11
12
13
14
15
16
# File 'lib/pg_types/schema_dumper.rb', line 10

def tables(stream)
  # Then add our custom composite types
  dump_custom_types(stream)

  # Call the original types method first (for enum types)
  super
end