2011-12-03 14:26:42 -06:00
|
|
|
class InetColumns < ActiveRecord::Migration
|
|
|
|
|
|
2012-04-15 23:35:38 -05:00
|
|
|
def self.up
|
|
|
|
|
change_column :hosts, :address, 'INET using address::INET'
|
|
|
|
|
remove_column :hosts, :address6
|
|
|
|
|
end
|
2011-12-03 14:26:42 -06:00
|
|
|
|
2012-04-15 23:35:38 -05:00
|
|
|
def self.down
|
|
|
|
|
change_column :hosts, :address, :text
|
|
|
|
|
add_column :hosts, :address6, :text
|
|
|
|
|
end
|
2011-12-03 14:26:42 -06:00
|
|
|
|
|
|
|
|
end
|