{"action":"closed","issue":{"url":"https://api.github.com/repos/jruby/activerecord-jdbc-adapter/issues/576","labels_url":"https://api.github.com/repos/jruby/activerecord-jdbc-adapter/issues/576/labels{/name}","comments_url":"https://api.github.com/repos/jruby/activerecord-jdbc-adapter/issues/576/comments","events_url":"https://api.github.com/repos/jruby/activerecord-jdbc-adapter/issues/576/events","html_url":"https://github.com/jruby/activerecord-jdbc-adapter/issues/576","id":40776537,"number":576,"title":"In rails 4.2.0.beta1 NoMethodError: undefined method `primary='","user":{"login":"kwando","id":891566,"avatar_url":"https://avatars.githubusercontent.com/u/891566?v=3","gravatar_id":"","url":"https://api.github.com/users/kwando","html_url":"https://github.com/kwando","followers_url":"https://api.github.com/users/kwando/followers","following_url":"https://api.github.com/users/kwando/following{/other_user}","gists_url":"https://api.github.com/users/kwando/gists{/gist_id}","starred_url":"https://api.github.com/users/kwando/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kwando/subscriptions","organizations_url":"https://api.github.com/users/kwando/orgs","repos_url":"https://api.github.com/users/kwando/repos","events_url":"https://api.github.com/users/kwando/events{/privacy}","received_events_url":"https://api.github.com/users/kwando/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/activerecord-jdbc-adapter/labels/rails-4.2","name":"rails-4.2","color":"4100f0"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-08-21T06:32:59Z","updated_at":"2015-01-28T07:37:30Z","closed_at":"2015-01-28T07:37:30Z","body":"````\r\nNoMethodError: undefined method `primary=' for #<ActiveRecord::ConnectionAdapters::MSSQLColumn:0x4f9e9c21>\r\n\tfrom arjdbc/jdbc/RubyJdbcConnection.java:1098:in `columns'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-jdbc-adapter-1.3.9/lib/arjdbc/jdbc/adapter.rb:322:in `columns'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-jdbc-adapter-1.3.9/lib/arjdbc/mssql/adapter.rb:540:in `columns'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/connection_adapters/schema_cache.rb:43:in `columns'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/attributes.rb:85:in `columns'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/model_schema.rb:260:in `column_names'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/relation/calculations.rb:226:in `aggregate_column'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/relation/calculations.rb:252:in `execute_simple_calculation'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/relation/calculations.rb:221:in `perform_calculation'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/relation/calculations.rb:127:in `calculate'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/relation/calculations.rb:42:in `count'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/activerecord-4.2.0.beta1/lib/active_record/querying.rb:13:in `count'\r\n\tfrom (irb):1:in `evaluate'\r\n\tfrom org/jruby/RubyKernel.java:1101:in `eval'\r\n\tfrom org/jruby/RubyKernel.java:1501:in `loop'\r\n\tfrom org/jruby/RubyKernel.java:1264:in `catch'\r\n\tfrom org/jruby/RubyKernel.java:1264:in `catch'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/railties-4.2.0.beta1/lib/rails/commands/console.rb:110:in `start'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/railties-4.2.0.beta1/lib/rails/commands/console.rb:9:in `start'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/railties-4.2.0.beta1/lib/rails/commands/commands_tasks.rb:68:in `console'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/railties-4.2.0.beta1/lib/rails/commands/commands_tasks.rb:39:in `run_command!'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/vendor/bundle/jruby/1.9/gems/railties-4.2.0.beta1/lib/rails/commands.rb:17:in `(root)'\r\n\tfrom org/jruby/RubyKernel.java:1065:in `require'\r\n\tfrom /Users/kwando/projects/work/sdf_gateway/bin/rails:1:in `(root)'\r\n\tfrom org/jruby/RubyKernel.java:1081:in `load'\r\n\tfrom -e:1:in `(root)'\r\n\r\n\r\nrails 4.2.0.beta1\r\ngem 'rails', '4.2.0.beta1'\r\ngem 'activerecord-jdbcmssql-adapter', '~> 1.3'\r\ngem 'jdbc-mssql-azure', '0.0.2'"}}