1,,,,rails g migration add_user_id_to_group
2,,,,在migrate里面
def change
add_column :groups, :user_id, :integer
end
1,,,,rails g migration add_user_id_to_group
2,,,,在migrate里面
def change
add_column :groups, :user_id, :integer
end
本文标题:新增user_id到group的table里面
本文链接:https://www.haomeiwen.com/subject/tkuukxtx.html
网友评论