blob: 6a7640a1f2d389d07152d705d40adc4d4d809369 [file] [log] [blame]
#--######################################################################
# Copyright (c) 2008 Logica
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
#
# Onno van der Straaten:: initial implementation
#++######################################################################
# {Copyright (c) 2006 Logica}[link:files/COPYRIGHT.html]
class IpAddressOptional < ActiveRecord::Migration
def self.up
change_column :users, :ip_address, :string, :limit => 20, :null => true
end
def self.down
change_column :users, :ip_address, :string, :limit => 20, :default => "", :null => false
end
end