mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
Remove superfluous line
The `<<` operation saves the association already.
This commit is contained in:
@@ -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:"
|
||||
|
||||
Reference in New Issue
Block a user