What is the purpose of that for loop? I don't see you using it anywhere. If you call a model outside a loop it will only create one record in the database.
↧