Created
June 2, 2013 15:04
-
-
Save lando2319/5693751 to your computer and use it in GitHub Desktop.
Solution: $ rake db:migrate
This is what happens in pg when you don't run rake db:migrate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ActiveRecord::StatementInvalid in MessagesController#new | |
PG::Error: ERROR: relation "messages" does not exist | |
LINE 5: WHERE a.attrelid = '"messages"'::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 = '"messages"'::regclass | |
AND a.attnum > 0 AND NOT a.attisdropped | |
ORDER BY a.attnum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment