我刚刚部署到Heroku并且我的构建成功但页面不会显示,因为我相信PG的东西。这是我的错误
2016-04-24T00:15:11.392876+00:00 app[web.1]: Started GET "/users/sign_in" for 98.250.10.59 at 2016-04-24 00:15:11 +0000
2016-04-24T00:15:11.394581+00:00 app[web.1]: Processing by Devise::SessionsController#new as HTML
2016-04-24T00:15:11.398123+00:00 app[web.1]: Completed 500 Internal Server Error in 3ms (ActiveRecord: 1.4ms)
2016-04-24T00:15:11.400469+00:00 app[web.1]:
2016-04-24T00:15:11.400476+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "users" does not exist
2016-04-24T00:15:11.400477+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"users"'::regclass
2016-04-24T00:15:11.400478+00:00 app[web.1]: ^
2016-04-24T00:15:11.400479+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2016-04-24T00:15:11.400479+00:00 app[web.1]: pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod
2016-04-24T00:15:11.400480+00:00 app[web.1]: FROM pg_attribute a LEFT JOIN pg_attrdef d
2016-04-24T00:15:11.400481+00:00 app[web.1]: ON a.attrelid = d.adrelid AND a.attnum = d.adnum
2016-04-24T00:15:11.400481+00:00 app[web.1]: WHERE a.attrelid = '"users"'::regclass
2016-04-24T00:15:11.400482+00:00 app[web.1]: AND a.attnum > 0 AND NOT a.attisdropped
2016-04-24T00:15:11.400482+00:00 app[web.1]: ORDER BY a.attnum
2016-04-24T00:15:11.400483+00:00 app[web.1]: ):
2016-04-24T00:15:11.400485+00:00 app[web.1]: vendor/bundle/ruby/2.2.0/gems/activerecord- 4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in `async_exec'
我完全迷失了该做什么,我试图重置数据库以及所有这些东西任何帮助都会很棒!
答案 0 :(得分:0)
发现问题!我所要做的只是运行foreign_id