Skip to content

Instantly share code, notes, and snippets.

@andredublin
Created December 7, 2011 03:46
Show Gist options
  • Save andredublin/1441363 to your computer and use it in GitHub Desktop.
Save andredublin/1441363 to your computer and use it in GitHub Desktop.
activerecord rpsec pg error
Failure/Error: Unable to find matching line from backtrace
ActiveRecord::StatementInvalid:
PGError: ERROR: syntax error at or near "IDENTITY"
LINE 1: TRUNCATE TABLE RESTART IDENTITY CASCADE;
^
: TRUNCATE TABLE RESTART IDENTITY CASCADE;
@andredublin
Copy link
Author

Run rake db:test:prepare to fix this hiccup

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment