diff options
| author | Robert | 2017-04-26 15:40:21 +0200 |
|---|---|---|
| committer | Robert | 2017-04-26 15:40:21 +0200 |
| commit | afc2036453c3f851ee177cfe1d54daffacdebfb0 (patch) | |
| tree | be730a37fdad1d4acc2fbe6dce357ebf94912f27 | |
| parent | b28038e7895be940c667f2ca29cfc3212d1aba79 (diff) | |
| download | chouette-core-afc2036453c3f851ee177cfe1d54daffacdebfb0.tar.bz2 | |
TODO in specs, seems I reinvented the wheel where AR already has access to the PG catalog :)
| -rw-r--r-- | spec/support/pg_catalog.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/support/pg_catalog.rb b/spec/support/pg_catalog.rb index 30992168e..bb61adba5 100644 --- a/spec/support/pg_catalog.rb +++ b/spec/support/pg_catalog.rb @@ -1,5 +1,7 @@ module Support module PGCatalog + # TODO: Check what of the follwowing can be done with ActiveRecord. E.g. + # @connection.foreign_keys(table)... def get_columns(schema_name, table_name) execute("SELECT * from information_schema.columns WHERE table_name = '#{table_name}' AND table_schema = '#{schema_name}'") |
