Project

General

Profile

Download (374 Bytes) Statistics
| Branch: | Tag: | Revision:
class UpdateOsMinor < ActiveRecord::Migration

class Operatingsystem < ActiveRecord::Base; end

def self.up
Operatingsystem.update_all("minor = ''", {:minor => nil})
change_column :operatingsystems, :minor, :string, :limit => 16, :default => "", :null => false
end

def self.down
change_column :operatingsystems, :minor, :string, :limit => 16
end
end
(39-39/98)