ないっぽいよ! 愚直にeach / map しよう。
%w(NYC Boston SF Austin).map do |tb_location|
FactoryBot.create(:location, city: tb_location)
end
create_list with different values for the same attribute · Issue #787 · thoughtbot/factory_bot
Original by Github issue
チャットメンバー募集
何か質問、悩み事、相談などあればLINEオープンチャットもご利用ください。