Class: FIDIUS::PreludeDB::AdditionalData

Inherits:
Connection
  • Object
show all
Defined in:
lib/evasion-db/idmef-fetchers/prelude-db/lib/models/additional_data.rb

Overview

Wrapper for Prelude_AddionalData table

Class Method Summary collapse

Class Method Details

.column(name, sql_type = nil, default = nil, null = true) ⇒ Object



7
8
9
# File 'lib/evasion-db/idmef-fetchers/prelude-db/lib/models/additional_data.rb', line 7

def self.column(name, sql_type=nil, default=nil,null=true)
  columns << ActiveRecord::ConnectionAdapters::Column.new(name.to_s,default,sql_type.to_s,null)
end

.columnsObject



6
# File 'lib/evasion-db/idmef-fetchers/prelude-db/lib/models/additional_data.rb', line 6

def self.columns() @columns ||= []; end