hzamani / acts_as_relation

Multi table Inheritance for rails
http://hzamani.github.com/acts_as_relation/
MIT License
180 stars 58 forks source link

PG::Error: ERROR: relation "users" does not exist #83

Open eolszewski opened 10 years ago

eolszewski commented 10 years ago

Hello Everyone,

I am switching to DO from AWS and am trying to migrate my database. It looks like everything runs fine, but when I look at unicorn logs I see the following:

PG::Error: ERROR: relation "users" does not exist LINE 5: WHERE a.attrelid = '"users"'::regclass ^ : SELECT a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod FROM pg_attribute a LEFT JOIN pg_attrdef d ON a.attrelid = d.adrelid AND a.attnum = d.adnum WHERE a.attrelid = '"users"'::regclass AND a.attnum > 0 AND NOT a.attisdropped ORDER BY a.attnum

I assume this is preventing unicorn form functioning and I have no clue how to possibly fix it. I have been looking all over the web for a fix to this, but haven't been very successful. I'm using acts_as_relation 1.0.0 and will give any details necessary for diagnosis.

Thank you,