0

这个问题似乎与下面的错误有关,但我不知道如何手动创建这个麻烦的“类别”表。任何人都可以详细说明如何执行该回答者的建议吗?

.../current$ bundle exec rake RAILS_ENV=production db:schema:load
rake aborted!
PGError: ERROR:  relation "categories" does not exist
LINE 5:              WHERE 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
              FROM pg_attribute a LEFT JOIN pg_attrdef d
                ON a.attrelid = d.adrelid AND a.attnum = d.adnum
             WHERE a.attrelid = '"categories"'::regclass
               AND a.attnum > 0 AND NOT a.attisdropped
             ORDER BY a.attnum
4

1 回答 1

0

试试rake db:migrate。也许架构没有更新。

于 2013-05-08T21:25:50.513 回答