comparison db/migrate/.svn/text-base/20090401221305_update_enumerations_to_sti.rb.svn-base @ 0:513646585e45

* Import Redmine trunk SVN rev 3859
author Chris Cannam
date Fri, 23 Jul 2010 15:52:44 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:513646585e45
1 class UpdateEnumerationsToSti < ActiveRecord::Migration
2 def self.up
3 Enumeration.update_all("type = 'IssuePriority'", "opt = 'IPRI'")
4 Enumeration.update_all("type = 'DocumentCategory'", "opt = 'DCAT'")
5 Enumeration.update_all("type = 'TimeEntryActivity'", "opt = 'ACTI'")
6 end
7
8 def self.down
9 # no-op
10 end
11 end