我期待更改 develeop 和 prodoction 数据库以便能够迁移到 heroku。我逐步关闭此链接rails s
,一切正常,我在启动postgresql 时重新启动了服务器,但出现此错误
ActiveRecord::StatementInvalid in Tasks#main
Showing /home/bogdan/ex/bored/app/views/tasks/_rand_task.html.erb where line #3 raised:
PG::Error: ERROR: relation "tasks" does not exist
LINE 4: WHERE a.attrelid = '"tasks"'::regclass
^
: 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 = '"tasks"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
由于这是一个对象的第一次调用,我正在徘徊我应该迁移或做任何其他事情以便让我的pg
工作(对不起,如果问题是愚蠢的)