Skip to content

Instantly share code, notes, and snippets.

@derencius
Created October 7, 2009 14:06
Show Gist options
  • Save derencius/204041 to your computer and use it in GitHub Desktop.
Save derencius/204041 to your computer and use it in GitHub Desktop.
marcus@TAOX:~/Projects/cancao-ecom master$ rake db:migrate --trace
(in /Users/marcus/Projects/cancao-ecom)
/Users/marcus/Projects/cancao-ecom/vendor/plugins/integration/tasks
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
Loading haml-edge gem.
Warning: Error loading /Users/marcus/Projects/cancao-ecom/app/models/product.rb
Warning: Error loading /Users/marcus/Projects/cancao-ecom/app/models/sale.rb
Warning: Error loading /Users/marcus/Projects/cancao-ecom/app/models/shipping_discount.rb
rake aborted!
PGError: ERROR: relation "products" does not exist
: 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 = '"products"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/abstract_adapter.rb:219:in `log'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:537:in `query'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:1091:in `column_definitions'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/connection_adapters/postgresql_adapter.rb:705:in `columns'
/Library/Ruby/Gems/1.8/gems/activerecord-2.3.4/lib/active_record/base.rb:1271:in `columns'
/Users/marcus/Projects/cancao-ecom/vendor/plugins/flag_shih_tzu/lib/flag_shih_tzu.rb:70:in `check_flag_column'
/Users/marcus/Projects/cancao-ecom/vendor/plugins/flag_shih_tzu/lib/flag_shih_tzu.rb:13:in `has_flags'
/Users/marcus/Projects/cancao-ecom/app/models/product.rb:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment