@ParthivPatel-BTC 

No need to create a hash here, you can directly pass a hash to .new method like following,

```
user_role = UserRole.create({role_id: roles.id, user_id: user.id})
```