Sha256: d2054508e77d77cfe20f38e999c58be62bf81b239d215c976a727ac40144aac8
Contents?: true
Size: 470 Bytes
Versions: 4
Compression:
Stored size: 470 Bytes
Contents
module SchemaPlus::Compatibility module ActiveRecord module ConnectionAdapters module PostgreSQLAdapter def tables_only select_values(<<-SQL, "SCHEMA") SELECT c.relname FROM pg_class c LEFT JOIN pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind IN ('r') -- (r)elation/table AND n.nspname = ANY (current_schemas(false)) SQL end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems