metasploit-framework/data/sql/migrate/20111203000000_inet_columns.rb

14 lines
274 B
Ruby
Executable File

class InetColumns < ActiveRecord::Migration
def self.up
change_column :hosts, :address, 'INET using address::INET'
remove_column :hosts, :address6
end
def self.down
change_column :hosts, :address, :text
add_column :hosts, :address6, :text
end
end