method

add_foreign_key

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

Method not available on this version

This method is only available on newer versions. The first available version (v4.2.1) is shown here.

add_foreign_key(to_table, options)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 383
      def add_foreign_key(to_table, options)
        @foreign_key_adds << ForeignKeyDefinition.new(name, to_table, options)
      end