Flowdock
method

foreign_key

Importance_1
Ruby on Rails latest stable (v5.2.3) - 0 notes - Class: ActiveRecord::ConnectionAdapters::Table
foreign_key(*args) public

Adds a foreign key.

t.foreign_key(:authors)

See {connection.add_foreign_key}[rdoc-ref:SchemaStatements#add_foreign_key]

Show source
Register or log in to add new notes.