2011-12-03 20:26:42 +00:00
|
|
|
class InetColumns < ActiveRecord::Migration
|
|
|
|
|
|
|
|
def self.up
|
2011-12-04 17:58:21 +00:00
|
|
|
change_column :hosts, :address, 'INET using address::INET'
|
|
|
|
remove_column :hosts, :address6
|
2011-12-03 20:26:42 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.down
|
|
|
|
change_column :hosts, :address, :text
|
|
|
|
add_column :hosts, :address6, :text
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|