New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rake db:seed error #4
Comments
When you run db:seed rake uses ActiveRecord to check for pending_migrations. Which queries the public.schema_migrations table, which doesn't exist in public, it is in global. |
Is this a viable solution? In config/application.rb |
HI filo, Apologies. I accidentally deleted your question on github. It should be okay to add to existing applications. Greg Osuri On Wednesday, October 12, 2011 at 10:54 AM, Doug Cleven wrote:
|
Greg, Thank you so much for getting back to me. I recently My question is, Thank you for the help, Phil Hemmers |
PGError: ERROR: relation "schema_migrations" does not exist
LINE 4: WHERE a.attrelid = '"schema_migrations"'::regcl...
^
: 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 = '"schema_migrations"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
Tasks: TOP => db:seed => db:abort_if_pending_migrations
The text was updated successfully, but these errors were encountered: