Skip to content

Commit

Permalink
Added a manual script, already run in production, to convert ancient …
Browse files Browse the repository at this point in the history
…users who logged in pre-omniauth to the new format.
  • Loading branch information
reidab committed Mar 24, 2011
1 parent 4d08c03 commit ccdee03
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Person.all.each do |person|
twitter_user = Twitter.user(person.twitter)
if twitter_user
person.imported_from_provider = 'twitter'
person.imported_from_id = twitter_user.id
puts "#{person.twitter} => #{twitter_user.id}"
person.save!
end
end

0 comments on commit ccdee03

Please sign in to comment.