Sha256: 799ea8cc91d132fe54cf63468380d7d7d70aa49e093b58904fb1328f715014b1

Contents?: true

Size: 413 Bytes

Versions: 51

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

51 entries across 51 versions & 7 rubygems

Version Path
activerecord-5.2.8.1 lib/active_record/migration/join_table.rb
activerecord-5.2.8 lib/active_record/migration/join_table.rb
activerecord-5.2.7.1 lib/active_record/migration/join_table.rb
activerecord-5.2.7 lib/active_record/migration/join_table.rb
activerecord-5.2.6.3 lib/active_record/migration/join_table.rb
activerecord-5.2.6.2 lib/active_record/migration/join_table.rb
activerecord-5.2.6.1 lib/active_record/migration/join_table.rb
activerecord-5.2.6 lib/active_record/migration/join_table.rb
activerecord-5.2.4.6 lib/active_record/migration/join_table.rb
activerecord-5.2.5 lib/active_record/migration/join_table.rb
activerecord-5.2.4.5 lib/active_record/migration/join_table.rb
activerecord-5.2.4.4 lib/active_record/migration/join_table.rb
activerecord-5.2.4.3 lib/active_record/migration/join_table.rb
activerecord-6.0.2.2 lib/active_record/migration/join_table.rb
activerecord-5.2.4.2 lib/active_record/migration/join_table.rb
argon-1.3.1 vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/migration/join_table.rb
symbolic_enum-1.1.5 vendor/bundle/ruby/2.7.0/gems/activerecord-6.0.2.1/lib/active_record/migration/join_table.rb
activerecord-6.0.2.1 lib/active_record/migration/join_table.rb
activerecord-5.2.4.1 lib/active_record/migration/join_table.rb
activerecord-6.0.2 lib/active_record/migration/join_table.rb