Class: ActiveRecord::SchemaDumper

Inherits:
Object
  • Object
show all
Includes:
SchemaProcs
Defined in:
lib/schema_dumper.rb

Overview

This class is used to dump the database schema for some connection to some output format (i.e., ActiveRecord::Schema).

Instance Method Summary collapse

Methods included from SchemaProcs

#behavior, #cascade_or_restrict, #definer_or_invoker, #strict_or_null

Instance Method Details

#postgres?Boolean

TODO -Implement checks on SchemaDumper instance to ensure we do this only when using pg db.

Returns:

  • (Boolean)


9
10
11
# File 'lib/schema_dumper.rb', line 9

def postgres?
  adapter_name == 'PostgreSQL'
end