Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

need to .to_s table_name #6

Closed
jenseng opened this Issue · 1 comment

1 participant

@jenseng
Owner

see matthuhiggins/foreigner#96

it looks like in some scenarios the table names end up being symbols in ForeignKeyDefinition, which causes the immigration to fail. probably just need a .to_s when setting those up in Immigrant.foreign_keys_for

@jenseng jenseng closed this issue from a commit
@jenseng fix habtm/:join_table bug, closes #6
fix an issue introduced in matthuhiggins/foreigner@f29d0f1 ... :join_table
could be a symbol, which causes remove_prefix_and_suffix to blow up.

table names from other associations do not have this issue, as they are
always strings. regardless, this commit adds better test coverage so that
we know if any to_ruby call breaks.
e2cd5b1
@jenseng jenseng closed this in e2cd5b1
@jenseng
Owner

check out the 0.1.4 gem, that should fix the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.