Class: AddExploitedTable

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
db/migrate/20100824151500_add_exploited_table.rb

Class Method Summary collapse

Class Method Details

.downObject



12
13
14
# File 'db/migrate/20100824151500_add_exploited_table.rb', line 12

def self.down
  drop_table :exploited_hosts
end

.upObject



2
3
4
5
6
7
8
9
10
11
# File 'db/migrate/20100824151500_add_exploited_table.rb', line 2

def self.up
  create_table :exploited_hosts do |t|
    t.integer   :host_id, :null => false
    t.integer   :service_id
    t.string    :session_uuid, :limit => 8
    t.string    :name, :limit => 2048
    t.string    :payload, :limit => 2048
    t.timestamps 
  end
end