BTW, i know i can use like this. alter_table(:albums) do add_foreign_key :artist_id, :artists end
i just so suprise why we can use both form, but only one is full supported. 在2021年5月21日星期五 UTC+8 下午8:25:35<Billy Zheng> 写道: > > e.g. following code is working. > > Sequel.migration do > change do > add_column :institutions, :stock_name, String > end > end > > Sequel.migration do > change do > rename_column :institutions, :average_cost, :holding_cost > end > end > > but we can not found the add_foreign_key method like this: > > Sequel.migration do > change do > add_foreign_key :insiders, :stock_id, :stocks > end > end > > Thank you. > -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/sequel-talk/000607b3-1e1f-40e3-aea1-125b27001792n%40googlegroups.com.
