svenfuchs/globalize3 — Issue #107: current transaction is aborted, commands ignored until end of transaction block
Author: mitfik
Created: 2012-02-12 22:27:26+00:00
State: open

hi,

During rake db:migrate I've got this error:

PGError: ERROR: current transaction is aborted, commands ignored until end of transaction block

It happen during migration with creating translation table for one of my model.

MyModel.create_translation_table! :name => :string ....

I checked logs in pgsql and I found out that it is a problem with relation in my model, which does not exist yet because it was added after this migration.
I wonder why globalize3 check those relation if he do not use them, it does not matter if it will be already in db or not. Or maybe not?

Can anyone explain why it happen and what to do to solve that?
Thanks a lot of replay.

my env:
ruby 1.9.2
rails 3.0.10
postgresql 8.4.10
globalize3