Files
metasploit-gs/data/sql/migrate/20111203000000_inet_columns.rb
T

14 lines
274 B
Ruby
Raw Normal View History

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
2012-04-15 23:35:38 -05:00
def self.down
change_column :hosts, :address, :text
add_column :hosts, :address6, :text
end
end