parent
871a4d2d7b
commit
78b445a7ae
@ -0,0 +1,10 @@
|
||||
class UpdateOrgSubfiledDefault < ActiveRecord::Migration
|
||||
def up
|
||||
OrgSubfield.where(:name => "activity").update_all(:status => false)
|
||||
OrgSubfield.where(:name => "course").update_all(:status => 2)
|
||||
OrgSubfield.where(:name => "project").update_all(:status => 2)
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
@ -0,0 +1,8 @@
|
||||
class UpdateOrgSubfiledResource < ActiveRecord::Migration
|
||||
def up
|
||||
OrgSubfield.where(:field_type => "Resource").update_all(:status => 6)
|
||||
end
|
||||
|
||||
def down
|
||||
end
|
||||
end
|
Loading…
Reference in new issue