Skip to content

Instantly share code, notes, and snippets.

@calebhearth
Created March 6, 2012 16:08
Show Gist options
  • Save calebhearth/1987081 to your computer and use it in GitHub Desktop.
Save calebhearth/1987081 to your computer and use it in GitHub Desktop.
47) Error:
test_should_update_company(CompaniesControllerTest):
ActiveRecord::StatementInvalid: PGError: ERROR: relation "investor_company_profiles" does not exist
LINE 4: WHERE a.attrelid = '"investor_company_profiles"...
^
: 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 = '"investor_company_profiles"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:1106:in `async_exec'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:1106:in `exec_no_cache'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:650:in `block in exec_query'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/notifications/instrumenter.rb:20:in `instrument'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:649:in `exec_query'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:1231:in `column_definitions'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:845:in `columns'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:641:in `column_names'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:633:in `timestamp_column_names'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:566:in `block in table_rows'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:560:in `each'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:560:in `map'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:560:in `table_rows'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:475:in `block (3 levels) in create_fixtures'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:473:in `each'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:473:in `block (2 levels) in create_fixtures'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/abstract/database_statements.rb:190:in `transaction'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:472:in `block in create_fixtures'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/connection_adapters/postgresql_adapter.rb:513:in `disable_referential_integrity'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:457:in `create_fixtures'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:879:in `load_fixtures'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activerecord-3.2.1/lib/active_record/fixtures.rb:833:in `setup_fixtures'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:429:in `_run__4279937806121523682__setup__3181038572511494391__callbacks'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:405:in `__run_callback'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:385:in `_run_setup_callbacks'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/callbacks.rb:81:in `run_callbacks'
/home/caleb/code/solmarket/vendor/gems/ruby/1.9.1/gems/activesupport-3.2.1/lib/active_support/testing/setup_and_teardown.rb:34:in `run'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment