diff --git a/db/migrate/20141219034321_add_permalink_to_enterprises.rb b/db/migrate/20141219034321_add_permalink_to_enterprises.rb index 3fe12430652..55d8553bf8d 100644 --- a/db/migrate/20141219034321_add_permalink_to_enterprises.rb +++ b/db/migrate/20141219034321_add_permalink_to_enterprises.rb @@ -5,7 +5,7 @@ def up 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