Description:
MERGE changeset 306:307 from branch ytopc08-2 that fixes migration bug git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@308 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r161:edaacd4ec8e9 - - 4 files changed: 13 inserted, 1 deleted

@@ -9,6 +9,9
9 9
10 10 class << root
11 11 public :encrypt_new_password
12 + def valid?
13 + true
14 + end
12 15 end
13 16
14 17 root.encrypt_new_password
@@ -8,6 +8,13
8 8 User.reset_column_information
9 9
10 10 User.find(:all).each do |user|
11 +
12 + class << user
13 + def valid?
14 + true
15 + end
16 + end
17 +
11 18 user.site_id = default_site.id
12 19 user.save
13 20 end
@@ -6,6 +6,6
6 6
7 7 def self.down
8 8 remove_column :submissions, :source_filename
9 - add_column :problems, :output_only, :boolean
9 + remove_column :problems, :output_only
10 10 end
11 11 end
@@ -2,6 +2,8
2 2 def self.up
3 3 add_column :users, :activated, :boolean, :default => 0
4 4
5 + User.reset_column_information
6 +
5 7 User.find(:all).each do |user|
6 8
7 9 # disable validation
You need to be logged in to leave comments. Login now