add an events table
git-svn-id: file:///home/svn/framework3/trunk@8104 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
de2a293c26
commit
fd89f4e6cd
|
@ -0,0 +1,16 @@
|
|||
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
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
module Msf
|
||||
class DBManager
|
||||
|
||||
class Event < ActiveRecord::Base
|
||||
include DBSave
|
||||
belongs_to :workspace
|
||||
belongs_to :host
|
||||
|
||||
serialize :info
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Loading…
Reference in New Issue