ruby on rails - Heroku Postgres Error: PGError: ERROR: relation "organizations" does not exist (ActiveRecord::StatementInvalid) -


Harco is having a problem deploying my Rail App, where this error is thrown while trying to access the app:

/ P>

PGError: Error: The relationship "organizations" does not exist (ActiveRecord :: StatementInvalid)

  SELECT a.attname, format_type ( A.atttypid, A.atttypmod), d.adsrc, a.attnotnull, FROM pg_attribute, a lower addition at pg_attrdef d on a .attrelid = d.adrelid and a.attnum = d.adnum where a.attrelid = '"organization"': : :: regclass and A.attnum & gt; 0 and not a.attisdropped by ORDER a.attnum   

Anyone have any ideas? This is the first thing for me, especially because I'm working on the second app with everyone, and have not seen anything like this. Of course, everything works on local SQLite

- Any Thanks in advance for the help!

- Mark

I had the same problem to solve it, the database It's easier to reset.

  • The migration was done successfully for my case :)

    While this is a good solution in this context, do not do it on production. This will delete all records from your database

  • Comments

    Popular posts from this blog

    qt - switch/case statement in C++ with a QString type -

    python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

    Python's equivalent for Ruby's define_method? -