Flowdock
references(*args) public

Adds a reference.

t.references(:user)
t.belongs_to(:supplier, foreign_key: true)

See SchemaStatements#add_reference for details of the options you can use.

Show source
Register or log in to add new notes.
February 17, 2009
2 thanks

See column

See the end part of the docs on column for example uses.