Class: EnrichmentCreatedAtSchema

Inherits:
Object
  • Object
show all
Defined in:
lib/mihari/database.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



93
94
95
96
97
98
99
100
# File 'lib/mihari/database.rb', line 93

def change
  # Add created_at column because now it is able to enrich an atrifact after the creation
  add_column :autonomous_systems, :created_at, :datetime, if_not_exists: true
  add_column :geolocations, :created_at, :datetime, if_not_exists: true
  add_column :whois_records, :created_at, :datetime, if_not_exists: true
  add_column :dns_records, :created_at, :datetime, if_not_exists: true
  add_column :reverse_dns_names, :created_at, :datetime, if_not_exists: true
end