From 2897bf1fd774e4980202ac3fb76ff0036fb0ae4c Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Thu, 19 Jul 2012 09:05:53 -0300 Subject: Create default join table name using a Symbol Lets stick with a symbol in join table name, it was removed in 993e1643650b7b0939437f86b7b4cda0d92b0b8f and broke the build. --- activerecord/lib/active_record/migration/join_table.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activerecord/lib/active_record/migration/join_table.rb b/activerecord/lib/active_record/migration/join_table.rb index e456c81fc9..e880ae97bb 100644 --- a/activerecord/lib/active_record/migration/join_table.rb +++ b/activerecord/lib/active_record/migration/join_table.rb @@ -8,7 +8,7 @@ module ActiveRecord 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 -- cgit v1.2.3