PG::UniqueViolation Problem during 3.1.0.beta4 upgrade

Great! So glad you got it figured out. Your notes should be very helpful to others with the same issue.

I edited your post to make it easier for others to copy/paste your SQL.