mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-03 22:41:48 +01:00
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
This commit is contained in:
parent
8c193a65d6
commit
b57765486d
1 changed files with 3 additions and 0 deletions
|
|
@ -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|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue