mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
on.upcase!
This commit is contained in:
parent
66afefdd79
commit
0cd38a4af1
1 changed files with 1 additions and 1 deletions
|
@ -821,7 +821,7 @@ module ActiveRecord
|
|||
result = exec_query(<<-end_sql, 'SCHEMA').rows.first
|
||||
SELECT attr.attname, seq.relname
|
||||
FROM pg_class seq
|
||||
INNER JOIN pg_depend dep on seq.oid = dep.objid
|
||||
INNER JOIN pg_depend dep ON seq.oid = dep.objid
|
||||
INNER JOIN pg_attribute attr ON attr.attrelid = dep.refobjid AND attr.attnum = dep.refobjsubid
|
||||
INNER JOIN pg_constraint cons ON attr.attrelid = cons.conrelid AND attr.attnum = cons.conkey[1]
|
||||
WHERE seq.relkind = 'S'
|
||||
|
|
Loading…
Reference in a new issue