OSDN Git Service

fix: finder
[pettanr/pettanr.git] / db / migrate / 20131205030518_artist_belongs_to_user_data.rb
index 51eef28..35547c2 100644 (file)
@@ -1,6 +1,6 @@
 class ArtistBelongsToUserData < ActiveRecord::Migration
   def up
-    Artist.find(:all).each do |artist|
+    Artist.find_each do |artist|
       if artist.author_id
         artist.user_id = Author.find(artist.author_id).user_id
       else