Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 48a035712e
Fetching contributors…

Cannot retrieve contributors at this time

16 lines (13 sloc) 0.361 kB
module ActiveRecord
class Migration
module JoinTable #:nodoc:
private
def find_join_table_name(table_1, table_2, options = {})
options.delete(:table_name) || join_table_name(table_1, table_2)
end
def join_table_name(table_1, table_2)
[table_1.to_s, table_2.to_s].sort.join("_").to_sym
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.