Moving a working Rails app, cannot load schema -
this question seems relevant error below, not know how create troublesome 'categories' table manually. spell out how answerer proposes?
.../current$ bundle exec rake rails_env=production db:schema:load rake aborted! pgerror: error: relation "categories" not exist line 5: a.attrelid = '"categories"'::regclass ^ : select a.attname, format_type(a.atttypid, a.atttypmod), pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod pg_attribute left join pg_attrdef d on a.attrelid = d.adrelid , a.attnum = d.adnum a.attrelid = '"categories"'::regclass , a.attnum > 0 , not a.attisdropped order a.attnum
try rake db:migrate
. maybe schema not updated.
Comments
Post a Comment