想象一下,我想为 aBookSupplier
和Book
表播种数据。
BookSupplier.create(company: "Pablo Lledó - ProjectManagement", city: "Canadá", country: "Estados Unidos", address: "Victoria, BC, Canadá", telephone: "1", contact: "Limberg Morales", email: "", website: "")
Book.create(title: "Ajax", author: "Zakas, Nicholas C.- McPeak, Jeremy - Fawcett, Joe", edition: "", isbn: "84-415-2077-1", pages: "448", publish_date: "Septiembre 2006", cover: "libro_84-415-2077-1_1195672469.jpg")
我怎样才能正确地将那本书与那本书供应商相关联?处理这个问题的正确方法是什么?