Project

General

Profile

Download (374 Bytes) Statistics
| Branch: | Tag: | Revision:
51252890 Frank Sweetser
class UpdateOsMinor < ActiveRecord::Migration
2e291eb2 Ohad Levy
class Operatingsystem < ActiveRecord::Base; end

51252890 Frank Sweetser
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