Skip to content

Instantly share code, notes, and snippets.

@wrightmartin
Created September 17, 2015 14:38
Show Gist options
  • Save wrightmartin/19e98f5930dc77c998b4 to your computer and use it in GitHub Desktop.
Save wrightmartin/19e98f5930dc77c998b4 to your computer and use it in GitHub Desktop.
ActiveRecord::StatementInvalid in GeneralController#frontpage
PG::UndefinedTable: ERROR: relation "track_things" does not exist
LINE 5: WHERE a.attrelid = '"track_things"'::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 = '"track_things"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
Rails.root: /home/vagrant/alaveteli
Application Trace | Framework Trace | Full Trace
app/models/track_thing.rb:106:in `new'
app/models/track_thing.rb:106:in `create_track_for_search_query'
app/controllers/general_controller.rb:21:in `frontpage'
app/controllers/application_controller.rb:112:in `record_memory'
lib/whatdotheyknow/strip_empty_sessions.rb:15:in `call'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment