foreman/db/migrate/20100601221000_update_os_minor.rb @ 2e291eb2
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
|