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-7.2.1 lib/active_record/migration/join_table.rb
activerecord-7.2.0 lib/active_record/migration/join_table.rb
activerecord-7.2.0.rc1 lib/active_record/migration/join_table.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.0.8.4/lib/active_record/migration/join_table.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/activerecord-7.1.3.4/lib/active_record/migration/join_table.rb
activerecord-7.2.0.beta3 lib/active_record/migration/join_table.rb
cm-admin-1.5.22 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/migration/join_table.rb
cm-admin-1.5.21 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/migration/join_table.rb
cm-admin-1.5.20 vendor/bundle/ruby/3.3.0/gems/activerecord-7.0.5.1/lib/active_record/migration/join_table.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/activerecord-7.1.3.4/lib/active_record/migration/join_table.rb
activerecord-7.2.0.beta2 lib/active_record/migration/join_table.rb
activerecord-7.1.3.4 lib/active_record/migration/join_table.rb
activerecord-7.0.8.4 lib/active_record/migration/join_table.rb
activerecord-7.2.0.beta1 lib/active_record/migration/join_table.rb
activerecord-7.1.3.2 lib/active_record/migration/join_table.rb
activerecord-7.1.3.1 lib/active_record/migration/join_table.rb
activerecord-7.0.8.1 lib/active_record/migration/join_table.rb
activerecord-7.1.3 lib/active_record/migration/join_table.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-7.0.2.3/lib/active_record/migration/join_table.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-7.0.3.1/lib/active_record/migration/join_table.rb