Module: DataMapper::Adapters::PostgresAdapter::Migration

Defined in:
lib/dm-mapping/adapters/postgres_adapter.rb

Instance Method Summary collapse

Instance Method Details

#storagesObject



8
9
10
11
12
13
14
15
# File 'lib/dm-mapping/adapters/postgres_adapter.rb', line 8

def storages
  sql = <<-SQL.compress_lines
    SELECT table_name FROM "information_schema"."tables"
    WHERE table_schema = current_schema()
  SQL

  query(sql)
end