Class: Apartment::Adapters::PostgresqlSchemaFromSqlAdapter

Inherits:
PostgresqlSchemaAdapter show all
Defined in:
lib/apartment/adapters/postgresql_adapter.rb

Overview

Another Adapter for Postgresql when using schemas and SQL

Constant Summary collapse

PSQL_DUMP_BLACKLISTED_STATEMENTS =
[
  /SET search_path/i,   # overridden later
  /SET lock_timeout/i   # new in postgresql 9.3
]

Instance Attribute Summary

Attributes inherited from AbstractAdapter

#default_tenant

Instance Method Summary collapse

Methods inherited from PostgresqlSchemaAdapter

#current, #drop, #initialize, #process_excluded_models, #reset

Methods inherited from AbstractAdapter

#create, #current, #current_database, #current_tenant, #drop, #each, #initialize, #process, #process_excluded_models, #reset, #seed_data, #switch, #switch!

Constructor Details

This class inherits a constructor from Apartment::Adapters::PostgresqlSchemaAdapter

Instance Method Details

#import_database_schemaObject


125
126
127
128
# File 'lib/apartment/adapters/postgresql_adapter.rb', line 125

def import_database_schema
  clone_pg_schema
  copy_schema_migrations
end