Project

General

Profile

Download (367 Bytes) Statistics
| Branch: | Tag: | Revision:
class UpdateOsMinor < ActiveRecord::Migration
class Operatingsystem < ActiveRecord::Base; end

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

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