method

foreign_key

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActiveRecord::ConnectionAdapters::TableDefinition

Method not available on this version

This method is only available on newer versions. The first available version of the method is shown here.

foreign_key(table_name, options = {}) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb, line 290
      def foreign_key(table_name, options = {}) # :nodoc:
        foreign_keys[table_name] = options
      end
Register or log in to add new notes.