Create multiple objects while seeding in Ruby on Rails

后端 未结 0 1650
我在风中等你
我在风中等你 2020-11-21 06:37

I have the following seed file that creates many animals which are then added to the animal_store object

animal_store_seeder:

animal1 = create(:animal)         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题