Remove superfluous line

The `<<` operation saves the association already.
This commit is contained in:
Maikel Linke
2023-08-03 10:26:59 +10:00
parent 6056c59301
commit c8511ecd0d

View File

@@ -65,7 +65,6 @@ def create_admin_user
if admin.save
role = Spree::Role.find_or_create_by(name: 'admin')
admin.spree_roles << role
admin.save
say "New admin user persisted!"
else
say "There was some problems with persisting new admin user:"