Fix seeds script for cases where default stock location already exists in the DB

This commit is contained in:
luisramos0
2019-01-29 20:19:29 +00:00
parent 8a86c0473d
commit 3595abc08a

View File

@@ -51,4 +51,4 @@ end
spree_user = Spree::User.first
spree_user && spree_user.confirm!
DefaultStockLocation.create!
DefaultStockLocation.find_or_create