Class: CreateIdmefEvents

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/db/migrations/002_create_idmef_events.rb

Class Method Summary collapse

Class Method Details

.downObject



20
21
22
# File 'lib/db/migrations/002_create_idmef_events.rb', line 20

def self.down
  drop_table :idmef_events
end

.upObject



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/db/migrations/002_create_idmef_events.rb', line 2

def self.up
  create_table :idmef_events do |t|
    t.integer :attack_module_id
    t.integer :attack_payload_id
    t.column :payload, :binary
    t.datetime :detect_time
    t.string :dest_ip
    t.string :src_ip
    t.integer :dest_port
    t.integer :src_port
    t.string :text
    t.string :severity
    t.string :analyzer_model
    t.column :ident, :bigint
    t.timestamps
  end
end