method

foreign_key_in_create

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SchemaCreation

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

foreign_key_in_create(from_table, to_table, options)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb, line 162
        def foreign_key_in_create(from_table, to_table, options)
          prefix = ActiveRecord::Base.table_name_prefix
          suffix = ActiveRecord::Base.table_name_suffix
          to_table = "#{prefix}#{to_table}#{suffix}"
          options = foreign_key_options(from_table, to_table, options)
          accept ForeignKeyDefinition.new(from_table, to_table, options)
        end