1
mirror of https://github.com/rapid7/metasploit-framework synced 2024-11-12 11:52:01 +01:00
metasploit-framework/data/sql/migrate/004_add_events_table.rb
James Lee fd89f4e6cd add an events table
git-svn-id: file:///home/svn/framework3/trunk@8104 4d416f70-5f16-0410-b530-b9f4589650da
2010-01-13 06:40:34 +00:00

17 lines
290 B
Ruby

class AddEventsTable < ActiveRecord::Migration
def self.up
create_table :events do |t|
t.integer :workspace_id
t.integer :host_id
t.timestamp :created_at
t.string :user
t.string :name
t.string :info
end
end
def self.down
drop_table :events
end
end