--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Add a foreign key with the given name and referencing the given table to the DDL for the table. See Generator#column for the available options.
- !ruby/struct:SM::Flow::P 
  body: You can also pass an array of column names for creating composite foreign keys. In this case, it will assume the columns exists and will only add the constraint.
- !ruby/struct:SM::Flow::P 
  body: "NOTE: If you need to add a foreign key constraint to an existing column use the composite key syntax even if it is only one column."
full_name: Sequel::Schema::AlterTableGenerator#add_foreign_key
is_singleton: false
name: add_foreign_key
params: (name, table, opts = {})
visibility: public
