Skip to content

Commit

Permalink
Merge pull request #107 from zhishi-project/reasign_tags
Browse files Browse the repository at this point in the history
fixed little bug with tag reassignment
  • Loading branch information
Oreoluwa authored Jun 10, 2016
2 parents 8114531 + 5de7db4 commit cf89e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tasks/remap_tags.rake
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace :remap_tags do
}

tags.each do |key, value|
parent_tag = Tag.where(name: key)
parent_tag = Tag.find_by(name: key)
Tag.where(name: value).update_all(representative_id: parent_tag)
end
puts "Sucessfuly Mapped Tags!"
Expand Down

0 comments on commit cf89e53

Please sign in to comment.