Skip to content

Instantly share code, notes, and snippets.

@stephanpavlovic
Created December 3, 2011 10:21
Show Gist options
  • Save stephanpavlovic/1426769 to your computer and use it in GitHub Desktop.
Save stephanpavlovic/1426769 to your computer and use it in GitHub Desktop.
PGError: ERROR: relation "cities" does not exist
LINE 4: WHERE a.attrelid = '"cities"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"cities"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
(ActiveRecord::StatementInvalid)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment