Class: CreatePackets
- Inherits:
-
ActiveRecord::Migration
- Object
- ActiveRecord::Migration
- CreatePackets
- Defined in:
- lib/db/migrations/001_create_packets.rb
Class Method Summary collapse
Class Method Details
.down ⇒ Object
15 16 17 |
# File 'lib/db/migrations/001_create_packets.rb', line 15 def self.down drop_table :packets end |
.up ⇒ Object
2 3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/db/migrations/001_create_packets.rb', line 2 def self.up create_table :packets do |t| t.integer :attack_module_id t.integer :attack_payload_id t.string :src_addr t.string :dest_addr t.string :src_port t.string :dest_port t.column :payload, :binary t. end end |