class EnrichmentCreatedAtSchema

Public Instance Methods

change() click to toggle source
# File lib/mihari/database.rb, line 78
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