jruby/activerecord-jdbc-adapter — Issue #157: has_and_belongs_to_many( :join_table => 'this must be a string' )
Author: copiousfreetime
Created: 2012-01-25 03:31:18+00:00
State: open

We are getting a code base to run both in ruby and in jruby with ActiveRecord, and in this case it is 2.3.x, so you may want to just ignore this issue.

When using `has_and_belongs_to_many`, the `:join_table` option must have a string value.

In spinning up our existing code base, activerecord-jdbc is throwing errors here https://github.com/jruby/activerecord-jdbc-adapter/blob/v1.2.1/lib/arjdbc/postgresql/adapter.rb#L307 when the `table` is a symbol.

I've looked at the code examples in the ActiveRecord API documentation, and they all use strings for the value of `:join_table` so this may be just a bonus that the standard rails postgresql adapter takes care of for us.

I'm fixing this on my end, converting these from Symbol's to Strings in my models, I just thought you should be aware of it.