Foreign Keys in Migrations

Is there a way to create the db schema completely through the ruby
syntax in a migration?
If i want a relation between table there doesnt seem a way to create
it when having the environment table set to :ruby instead of :sql and
using migrations.

Thanks.

I asked this one recently, so I can answer this:

You need the plugin called fixture_references. There's not a whole lot
of documentation for it yet, so I quote the patch I sent them for an
INSTALL file:

Index: INSTALL