mdeering/attribute_normalizer — Issue #21: Incompatibility with paper_trail
Author: gamov
Created: 2011-11-11 08:53:21+00:00
State: open

I'm trying to install paper_trail in my app but I can't create the migration table:
bundle exec rails generate paper_trail:install
I get the error below. I'm not so sure which gems is the culprit... I post it here first. If I comment gem 'attribute_normalizer' in my gemfile, the migration file is created normally. Tested with rails 3.1.1 and 3.0.10 on ruby 1.9.2

[rvm:ruby-1.9.2-p180@testrails31] Gamov-MBP:testrails31 gamov$ bundle exec rails generate paper_trail:install
/Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:409:in `retrieve_connection': ActiveRecord::ConnectionNotEstablished (ActiveRecord::ConnectionNotEstablished)
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:107:in `retrieve_connection'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activerecord-3.1.1/lib/active_record/connection_adapters/abstract/connection_specification.rb:89:in `connection'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activerecord-3.1.1/lib/active_record/base.rb:703:in `table_exists?'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/attribute_normalizer-1.0.0/lib/attribute_normalizer/model_inclusions.rb:65:in `inherited'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/paper_trail-2.4.1/lib/paper_trail/version.rb:1:in `'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `block in require'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `block in load_dependency'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:640:in `new_constants_in'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:223:in `load_dependency'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/activesupport-3.1.1/lib/active_support/dependencies.rb:240:in `require'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/paper_trail-2.4.1/lib/paper_trail.rb:7:in `'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `require'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/bundler-1.0.21/lib/bundler.rb:122:in `require'
from /Users/gamov/Temp/@NoTM/rails/testrails31/config/application.rb:7:in `'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/railties-3.1.1/lib/rails/commands.rb:21:in `require'
from /Users/gamov/.rvm/gems/ruby-1.9.2-p180@testrails31/gems/railties-3.1.1/lib/rails/commands.rb:21:in `'
from script/rails:6:in `require'
from script/rails:6:in `

'