Sha256: b6cdffbb0117f381a45c3213130420ce88644cb0199ee137ad9104f333d358fe

Contents?: true

Size: 370 Bytes

Versions: 87

Compression:

Stored size: 370 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)
        ModelSchema.derive_join_table_name(table_1, table_2).to_sym
      end
    end
  end
end

Version data entries

87 entries across 85 versions & 10 rubygems

Version Path
activerecord-4.2.11.3 lib/active_record/migration/join_table.rb
activerecord-4.2.11.2 lib/active_record/migration/join_table.rb
activerecord-5.0.7.2 lib/active_record/migration/join_table.rb
activerecord-4.2.11.1 lib/active_record/migration/join_table.rb
activerecord-5.0.7.1 lib/active_record/migration/join_table.rb
activerecord-4.2.11 lib/active_record/migration/join_table.rb
activerecord-5.0.7 lib/active_record/migration/join_table.rb
activerecord-4.2.10 lib/active_record/migration/join_table.rb
activerecord-4.2.10.rc1 lib/active_record/migration/join_table.rb
activerecord-5.0.6 lib/active_record/migration/join_table.rb
activerecord-5.0.6.rc1 lib/active_record/migration/join_table.rb
activerecord-5.0.5 lib/active_record/migration/join_table.rb
activerecord-5.0.5.rc2 lib/active_record/migration/join_table.rb
activerecord-5.0.5.rc1 lib/active_record/migration/join_table.rb
activerecord-4.2.9 lib/active_record/migration/join_table.rb
activerecord-4.2.9.rc2 lib/active_record/migration/join_table.rb
activerecord-5.0.4 lib/active_record/migration/join_table.rb
activerecord-5.0.4.rc1 lib/active_record/migration/join_table.rb
activerecord-4.2.9.rc1 lib/active_record/migration/join_table.rb
activerecord-5.0.3 lib/active_record/migration/join_table.rb