Sha256: 20767c157b1e2753ca995077cc5f904f762d51c229ec6207b59ae1ea968e9f21

Contents?: true

Size: 412 Bytes

Versions: 59

Compression:

Stored size: 412 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

59 entries across 59 versions & 4 rubygems

Version Path
activerecord-6.1.7.10 lib/active_record/migration/join_table.rb
activerecord-6.1.7.9 lib/active_record/migration/join_table.rb
activerecord-6.1.7.8 lib/active_record/migration/join_table.rb
activerecord-6.1.7.7 lib/active_record/migration/join_table.rb
scrapbook-0.3.2 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/migration/join_table.rb
activerecord-6.1.7.6 lib/active_record/migration/join_table.rb
activerecord-6.1.7.5 lib/active_record/migration/join_table.rb
activerecord-6.1.7.4 lib/active_record/migration/join_table.rb
scrapbook-0.3.1 vendor/ruby/2.7.0/gems/activerecord-6.1.6.1/lib/active_record/migration/join_table.rb
activerecord-6.1.7.3 lib/active_record/migration/join_table.rb
activerecord-6.1.7.2 lib/active_record/migration/join_table.rb
activerecord-6.1.7.1 lib/active_record/migration/join_table.rb
activerecord-6.0.6.1 lib/active_record/migration/join_table.rb
activerecord-6.1.7 lib/active_record/migration/join_table.rb
activerecord-6.0.6 lib/active_record/migration/join_table.rb
activerecord-6.1.6.1 lib/active_record/migration/join_table.rb
activerecord-6.0.5.1 lib/active_record/migration/join_table.rb
activerecord-6.0.5 lib/active_record/migration/join_table.rb
activerecord-6.1.6 lib/active_record/migration/join_table.rb
activerecord-6.1.5.1 lib/active_record/migration/join_table.rb