Class: FIDIUS::PreludeDB::AdditionalData
- Inherits:
-
Connection
- Object
- ActiveRecord::Base
- Connection
- FIDIUS::PreludeDB::AdditionalData
- 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 |
.columns ⇒ Object
6 |
# File 'lib/evasion-db/idmef-fetchers/prelude-db/lib/models/additional_data.rb', line 6 def self.columns() @columns ||= []; end |