Skip to content

Instantly share code, notes, and snippets.

@krishnasrihari
Created December 24, 2012 19:24
Show Gist options
  • Save krishnasrihari/4370433 to your computer and use it in GitHub Desktop.
Save krishnasrihari/4370433 to your computer and use it in GitHub Desktop.
Postgresql error
krishna@krishna-desktop:~/oDesk/Rabble$ rake --trace db:migrate
Sass is in the process of being separated from Haml,
and will no longer be bundled at all in Haml 3.2.0.
Please install the 'sass' gem if you want to use Sass.
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
PG::Error: ERROR: relation "events" does not exist
LINE 4: WHERE a.attrelid = '"events"'::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 = '"events"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `async_exec'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1158:in `exec_no_cache'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:664:in `block in exec_query'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:663:in `exec_query'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1283:in `column_definitions'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:859:in `columns'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/connection_adapters/schema_cache.rb:12:in `block in initialize'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `yield'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `default'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:228:in `columns'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/model_schema.rb:237:in `columns_hash'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/locking/optimistic.rb:129:in `locking_enabled?'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation.rb:170:in `exec_queries'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation.rb:160:in `block in to_a'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/explain.rb:40:in `logging_query_plan'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation.rb:159:in `to_a'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/relation/finder_methods.rb:159:in `all'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activerecord-3.2.8/lib/active_record/querying.rb:5:in `all'
/home/krishna/oDesk/Rabble/app/admin/tickets.rb:2:in `block in <top (required)>'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/dsl.rb:16:in `instance_eval'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/dsl.rb:16:in `run_registration_block'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/namespace.rb:175:in `parse_registration_block'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/namespace.rb:54:in `register'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/application.rb:112:in `register'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin.rb:75:in `register'
/home/krishna/oDesk/Rabble/app/admin/tickets.rb:1:in `<top (required)>'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/application.rb:182:in `block in load!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/application.rb:182:in `each'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/application.rb:182:in `load!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/application.rb:205:in `routes'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin.rb:79:in `routes'
/home/krishna/oDesk/Rabble/config/routes.rb:3:in `block in <top (required)>'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.8/lib/action_dispatch/routing/route_set.rb:260:in `draw'
/home/krishna/oDesk/Rabble/config/routes.rb:1:in `<top (required)>'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `block in load'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:245:in `load'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `each'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:40:in `load_paths'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application/routes_reloader.rb:16:in `reload!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application.rb:108:in `reload_routes!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/reloader.rb:34:in `reload!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activeadmin-0.5.0/lib/active_admin/reloader.rb:61:in `block in attach!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:429:in `_run__903337946__prepare__868225913__callbacks'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/actionpack-3.2.8/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
/home/krishna/oDesk/Rabble/config/environment.rb:5:in `<top (required)>'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `block in require'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application.rb:103:in `require_environment!'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/railties-3.2.8/lib/rails/application.rb:295:in `block (2 levels) in initialize_tasks'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/home/krishna/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `block in invoke_prerequisites'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `block in invoke_with_call_chain'
/home/krishna/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/bin/rake:19:in `load'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/bin/rake:19:in `<main>'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/bin/ruby_noexec_wrapper:14:in `eval'
/home/krishna/.rvm/gems/ruby-1.9.3-p0/bin/ruby_noexec_wrapper:14:in `<main>'
Tasks: TOP => db:migrate => environment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment