Sha256: 3769d38d00e5004633804261f913bebe5efad061ff2a89409faa30d0b144e54d
Contents?: true
Size: 361 Bytes
Versions: 73
Compression:
Stored size: 361 Bytes
Contents
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
Version data entries
73 entries across 73 versions & 3 rubygems