repo.or.cz
/
askyou.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
;]
[askyou.git]
/
db
/
migrate
/
20091010093521_fix_users_custom_values.rb
blob
923c78fc0f316a4f2933fba300bc7d443722d5dc
1
class FixUsersCustomValues < ActiveRecord::Migration
2
def self.up
3
CustomValue.update_all("customized_type = 'Principal'", "customized_type = 'User'")
4
end
5
6
def self.down
7
CustomValue.update_all("customized_type = 'User'", "customized_type = 'Principal'")
8
end
9
end