Skip to content

Instantly share code, notes, and snippets.

@3h5a9
Last active July 14, 2016 13:32
Show Gist options
  • Save 3h5a9/c374f2e4d2d531b88319c6d583c69b4f to your computer and use it in GitHub Desktop.
Save 3h5a9/c374f2e4d2d531b88319c6d583c69b4f to your computer and use it in GitHub Desktop.
error in heroku.
2016-07-14T13:13:11.659258+00:00 app[web.1]: WHERE a.attrelid = '"articles"'::regclass
2016-07-14T13:13:11.653390+00:00 app[web.1]: Processing by ArticlesController#new as */*
2016-07-14T13:13:11.659258+00:00 app[web.1]: WHERE a.attrelid = '"articles"'::regclass
2016-07-14T13:13:11.659249+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "articles" does not exist
2016-07-14T13:13:11.659259+00:00 app[web.1]: ORDER BY a.attnum
2016-07-14T13:13:11.659261+00:00 app[web.1]:
2016-07-14T13:13:11.659262+00:00 app[web.1]:
2016-07-14T13:13:11.659254+00:00 app[web.1]: : SELECT a.attname, format_type(a.atttypid, a.atttypmod),
2016-07-14T13:13:11.653390+00:00 app[web.1]: Processing by ArticlesController#new as */*
2016-07-14T13:13:11.659258+00:00 app[web.1]: WHERE a.attrelid = '"articles"'::regclass
2016-07-14T13:13:11.659250+00:00 app[web.1]: LINE 5: WHERE a.attrelid = '"articles"'::regclass
2016-07-14T13:13:11.659249+00:00 app[web.1]: ActiveRecord::StatementInvalid (PG::UndefinedTable: ERROR: relation "articles" does not exist
2016-07-14T13:13:11.659259+00:00 app[web.1]: ORDER BY a.attnum
2016-07-14T13:13:11.659260+00:00 app[web.1]: app/controllers/articles_controller.rb:9:in `new'
2016-07-14T13:13:11.659261+00:00 app[web.1]:
2016-07-14T13:13:11.659262+00:00 app[web.1]:
2016-07-14T13:13:11.658788+00:00 heroku[router]: at=info method=GET path="/articles/new" host=aag-one.herokuapp.com request_id=1d065854-0bc8-471f-bbf4-159bdfc229bb fwd="104.196.6.118" dyno=web.1 connect=0ms service=24ms status=500 bytes=1754
2016-07-14T13:13:11.659258+00:00 app[web.1]: WHERE a.attrelid = '"articles"'::regclass
2016-07-14T13:13:11.653390+00:00 app[web.1]: Processing by ArticlesController#new as */*
@3h5a9
Copy link
Author

3h5a9 commented Jul 14, 2016

Solution

log into heroku through terminal and run
heroku run rake db:migrate
and than commit with heroku master git push heroku master

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment