Module: ActiveRecord::Migration::JoinTable
Do not use. This module is for internal use only.
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
::ActiveRecord::ConnectionAdapters::AbstractAdapter ,
::ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter ,
::ActiveRecord::ConnectionAdapters::Mysql2Adapter ,
::ActiveRecord::ConnectionAdapters::PostgreSQLAdapter ,
::ActiveRecord::ConnectionAdapters::SQLite3Adapter ,
::ActiveRecord::ConnectionAdapters::SchemaStatements ,
::ActiveRecord::ConnectionAdapters::TrilogyAdapter ,
CommandRecorder
| |
Defined in: | activerecord/lib/active_record/migration/join_table.rb |
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, = {}) .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