Permalink
Browse files

Create default join table name using a Symbol

Lets stick with a symbol in join table name, it was removed in
993e164 and broke the build.
  • Loading branch information...
carlosantoniodasilva committed Jul 19, 2012
1 parent 2470501 commit 2897bf1fd774e4980202ac3fb76ff0036fb0ae4c
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/migration/join_table.rb
@@ -8,7 +8,7 @@ def find_join_table_name(table_1, table_2, options = {})
end
def join_table_name(table_1, table_2)
- [table_1, table_2].sort.join("_")
+ [table_1, table_2].sort.join("_").to_sym
end
end
end

0 comments on commit 2897bf1

Please sign in to comment.