Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove used migration.

  • Loading branch information...
commit 904592c5a20c13f233dce7d4b5e3972f7f69c975 1 parent f7d900e
@huacnlee authored
Showing with 0 additions and 14 deletions.
  1. +0 −14 db/migrate/20120326051241_move_likes_to_favorites.rb
View
14 db/migrate/20120326051241_move_likes_to_favorites.rb
@@ -1,14 +0,0 @@
-class MoveLikesToFavorites < Mongoid::Migration
- def self.up
- User.all.each do |u|
- ids = u.likes.collect { |like| like.likeable_id }
- if not ids.blank?
- u.update_attribute(:favorite_topic_ids, ids.uniq)
- print "."
- end
- end
- end
-
- def self.down
- end
-end
Please sign in to comment.
Something went wrong with that request. Please try again.