PG::Error: ERROR: permission denied: "RI_ConstraintTrigger_26748" is a system trigger

168 views
Skip to first unread message

mcbsys

unread,
Sep 14, 2012, 9:50:43 PM9/14/12
to database...@googlegroups.com
I have foreign key constraints in my Postgres 8.4 database. Somehow this causes database_cleaner to try to do something that it is not allowed to do as a standard database user. Is that a bug?

Anyway after googling around, I found that I could either monkey-patch ActiveRecord or give the test user superuser privileges in Postgres. I opted for the latter.

I blogged about the details here:

http://www.mcbsys.com/techblog/2012/09/postgres-error-trigger-is-a-system-trigger/

Mark
Reply all
Reply to author
Forward
0 new messages