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.0.4.1 lib/active_record/migration/join_table.rb
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/activerecord-7.0.4/lib/active_record/migration/join_table.rb
activerecord-7.0.4 lib/active_record/migration/join_table.rb
activerecord-7.0.3.1 lib/active_record/migration/join_table.rb
activerecord-7.0.3 lib/active_record/migration/join_table.rb
activerecord-7.0.2.4 lib/active_record/migration/join_table.rb
activerecord-7.0.2.3 lib/active_record/migration/join_table.rb
activerecord-7.0.2.2 lib/active_record/migration/join_table.rb
activerecord-7.0.2.1 lib/active_record/migration/join_table.rb
activerecord-7.0.2 lib/active_record/migration/join_table.rb
activerecord-7.0.1 lib/active_record/migration/join_table.rb
activerecord-7.0.0 lib/active_record/migration/join_table.rb
activerecord-7.0.0.rc3 lib/active_record/migration/join_table.rb
activerecord-7.0.0.rc2 lib/active_record/migration/join_table.rb
activerecord-7.0.0.rc1 lib/active_record/migration/join_table.rb
activerecord-7.0.0.alpha2 lib/active_record/migration/join_table.rb
activerecord-7.0.0.alpha1 lib/active_record/migration/join_table.rb