blob: e880ae97bbba5a7656834779f89df46afe3b9c57 (
plain) (
tree)
|
|
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, table_2].sort.join("_").to_sym
end
end
end
end
|