Open ronaldocpontes opened 11 years ago
I couldn't reproduce this bug on Rails 3.2.13, pg 0.16.0, translation_center 1.6.7 and Ubuntu 12 Please let me know you versions, also do you already have audits (audited gem) https://github.com/collectiveidea/audited in your project ?
I didn't had audits before.... the gems audited (3.0.0) and audited-activerecord (3.0.0) where installed by translation_center.
I am trying to install translation_center on top of of a fresh clone of https://github.com/catarse/catarse on Postgres
Just clone the project, change database.yml, install translation_center and run db:create + db:migrate.
If you prefer I can send you all my migrations.
Thanks,
Here is a forked branch with my current files:
I got this problem too when installing into my application - it is an issue caused by the schema_plus
gem. If you work through each of the generated migrations and add foreign_key: false
to each field that ends in _id
, then the migrations will work.
Thanks @paulj! I was facing the same issue with polymorphic references in my migrations. Your suggestion to explicitly set :foreign_key=>false
for the problem fields worked for me too. I guess it's still a schema_plus
gem error as of 1.8.6 :pensive:.
Can't install translation_center...
Steps: