Skip to content

Commit

Permalink
Adding missing equals sign to test for equality in permalink migration
Browse files Browse the repository at this point in the history
  • Loading branch information
oeoeaio committed Jan 28, 2015
1 parent fd9f65f commit 9163b0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/migrate/20141219034321_add_permalink_to_enterprises.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9163b0c

Please sign in to comment.