diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-07-19 09:05:53 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-07-19 09:05:58 -0300 |
commit | 2897bf1fd774e4980202ac3fb76ff0036fb0ae4c (patch) | |
tree | c20ed3640c62368eabbf0d35d09924514165acf4 /activerecord/lib/active_record/migration | |
parent | 24705014b845cc0202a1fd8866e9981af742453f (diff) | |
download | rails-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.rb | 2 |
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 |