Skip to content

Instantly share code, notes, and snippets.

@ordinaryzelig
Created November 30, 2011 23:19
Show Gist options
  • Save ordinaryzelig/1411784 to your computer and use it in GitHub Desktop.
Save ordinaryzelig/1411784 to your computer and use it in GitHub Desktop.
1) GnipRule
Failure/Error: it { should have_many(:gnip_rule_network_posts)}
ActiveRecord::StatementInvalid:
PGError: ERROR: relation "gnip_rule_network_posts" does not exist
LINE 4: WHERE a.attrelid = '"gnip_rule_network_posts"':...
^
: 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 = '"gnip_rule_network_posts"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
ORDER BY a.attnum
# ./spec/models/gnip_rule_spec.rb:8:in `block (2 lev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment