From b57765486d79b85ec0da739b5ea4303912112262 Mon Sep 17 00:00:00 2001 From: lukemelia Date: Mon, 6 Nov 2006 04:29:28 +0000 Subject: [PATCH] Add explicit User < ActiveRecord::Base definition to migration 009 so that it will work for a user upgrading from r280 to trunk. John Athayde reported this problem on the mailing list. git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@336 a4c988fc-2ded-0310-b66e-134b36920a42 --- tracks/db/migrate/009_add_user_pref_refresh.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tracks/db/migrate/009_add_user_pref_refresh.rb b/tracks/db/migrate/009_add_user_pref_refresh.rb index 235f5673..b87e72f8 100644 --- a/tracks/db/migrate/009_add_user_pref_refresh.rb +++ b/tracks/db/migrate/009_add_user_pref_refresh.rb @@ -1,4 +1,7 @@ class AddUserPrefRefresh < ActiveRecord::Migration + + class User < ActiveRecord::Base; serialize :preferences; end + def self.up @users = User.find(:all) @users.each do |user|