Flowdock
method

foreign_key

Importance_1
v5.0.0.1 - Show latest stable - 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.