Sha256: 9ebe598d52534e18a635f82e812c492fcc07d3abe5804fda8eaf696ab0e8f16f

Contents?: true

Size: 413 Bytes

Versions: 77

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

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

77 entries across 74 versions & 7 rubygems

Version Path
activerecord-8.0.0 lib/active_record/migration/join_table.rb
activerecord-7.2.2 lib/active_record/migration/join_table.rb
activerecord-7.1.5 lib/active_record/migration/join_table.rb
activerecord-8.0.0.rc2 lib/active_record/migration/join_table.rb
activerecord-7.2.1.2 lib/active_record/migration/join_table.rb
activerecord-7.1.4.2 lib/active_record/migration/join_table.rb
activerecord-7.0.8.6 lib/active_record/migration/join_table.rb
activerecord-8.0.0.rc1 lib/active_record/migration/join_table.rb
activerecord-7.2.1.1 lib/active_record/migration/join_table.rb
activerecord-7.1.4.1 lib/active_record/migration/join_table.rb
activerecord-7.0.8.5 lib/active_record/migration/join_table.rb
activerecord-8.0.0.beta1 lib/active_record/migration/join_table.rb
omg-activerecord-8.0.0.alpha9 lib/active_record/migration/join_table.rb
omg-activerecord-8.0.0.alpha8 lib/active_record/migration/join_table.rb
omg-activerecord-8.0.0.alpha7 lib/active_record/migration/join_table.rb
omg-activerecord-8.0.0.alpha4 lib/active_record/migration/join_table.rb
omg-activerecord-8.0.0.alpha3 lib/active_record/migration/join_table.rb
omg-activerecord-8.0.0.alpha2 lib/active_record/migration/join_table.rb
omg-activerecord-8.0.0.alpha1 lib/active_record/migration/join_table.rb
activerecord-7.1.4 lib/active_record/migration/join_table.rb