Hi, I am facing issue with composite primary key In my gem file I have the below entries - gem 'rails', '>= 4.1.0.rc2' gem 'mysql2' gem 'rb-readline', "~> 0.5.1" gem 'sdoc', '~> 0.4.0', group: :doc gem 'spring', group: :development gem 'bcrypt', '~> 3.1.7' gem 'composite_primary_keys', { :git => 'git://github.com/composite-primary-keys/composite_primary_keys.git', :branch => 'ar_4.1.x' } When I tried running rails server, I get the below error Exiting /home/samanth/.bundler/ruby/2.1.0/composite_primary_keys-82db7315760f/lib/composite_primary_keys/connection_adapters/abstract/connection_specification_changes.rb:10:in `establish_connection': uninitialized constant ActiveRecord::Base::DEFAULT_ENV (NameError) from /home/samanth/.rbenv/versions/2.1.0/lib/ruby/gems/2.1.0/gems/activerecord-4.1.0.rc2/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>' Can you please advise how this issue can be fixed? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/517b4912a9036c96ccf6cff51f7e178c%40ruby-forum.com. For more options, visit https://groups.google.com/d/optout.