mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Adding missing equals sign to test for equality in permalink migration
This commit is contained in:
@@ -5,7 +5,7 @@ class AddPermalinkToEnterprises < ActiveRecord::Migration
|
||||
Enterprise.all.each do |enterprise|
|
||||
counter = 1
|
||||
permalink = enterprise.name.parameterize
|
||||
permalink = "my-enterprise-name" if permalink = ""
|
||||
permalink = "my-enterprise-name" if permalink == ""
|
||||
while Enterprise.find_by_permalink(permalink) do
|
||||
permalink = enterprise.name.parameterize + counter.to_s
|
||||
counter += 1
|
||||
|
||||
Reference in New Issue
Block a user