123456789_123456789_123456789_123456789_123456789_

Module: ActiveRecord::Migration::JoinTable

Do not use. This module is for internal use only.

Instance Method Summary

Instance Method Details

#find_join_table_name(table_1, table_2, options = {}) (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/join_table.rb', line 7

def find_join_table_name(table_1, table_2, options = {})
  options.delete(:table_name) || join_table_name(table_1, table_2)
end

#join_table_name(table_1, table_2) (private)

[ GitHub ]

  
# File 'activerecord/lib/active_record/migration/join_table.rb', line 11

def join_table_name(table_1, table_2)
  ModelSchema.derive_join_table_name(table_1, table_2).to_sym
end