Skip to content

Commit

Permalink
Oops, forgot to not fail on missing recipient_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
benhoskings committed Apr 13, 2010
1 parent 595cccd commit dd518b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions db/migrate/20100412042558_add_in_reply_to_to_tweets.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ def self.up
raise unless Tweet.replies.all? {|tweet|
if tweet.recipient_id.nil?
puts "Missing recipient_id on Tweet<#{tweet.id}> (#{tweet.tweet})"
true # This isn't a failure
else
user = User.find_by_id(tweet.recipient_id)
if user.nil?
Expand Down

0 comments on commit dd518b4

Please sign in to comment.