aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/migration
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-19 09:05:53 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-07-19 09:05:58 -0300
commit2897bf1fd774e4980202ac3fb76ff0036fb0ae4c (patch)
treec20ed3640c62368eabbf0d35d09924514165acf4 /activerecord/lib/active_record/migration
parent24705014b845cc0202a1fd8866e9981af742453f (diff)
downloadrails-2897bf1fd774e4980202ac3fb76ff0036fb0ae4c.tar.gz
rails-2897bf1fd774e4980202ac3fb76ff0036fb0ae4c.tar.bz2
rails-2897bf1fd774e4980202ac3fb76ff0036fb0ae4c.zip
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.
Diffstat (limited to 'activerecord/lib/active_record/migration')
-rw-r--r--activerecord/lib/active_record/migration/join_table.rb2
1 files changed, 1 insertions, 1 deletions
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