Accepts incoming events and correctly parses them into events. GeoLite2 integration complete"
This commit is contained in:
25
db/migrate/20251103105609_drop_geo_ip_databases_table.rb
Normal file
25
db/migrate/20251103105609_drop_geo_ip_databases_table.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class DropGeoIpDatabasesTable < ActiveRecord::Migration[8.1]
|
||||
def up
|
||||
drop_table :geo_ip_databases
|
||||
end
|
||||
|
||||
def down
|
||||
create_table :geo_ip_databases do |t|
|
||||
t.string :database_type, null: false
|
||||
t.string :version, null: false
|
||||
t.string :file_path, null: false
|
||||
t.integer :file_size, null: false
|
||||
t.string :checksum_md5, null: false
|
||||
t.datetime :downloaded_at, null: false
|
||||
t.datetime :last_checked_at
|
||||
t.boolean :is_active, default: true
|
||||
t.timestamps
|
||||
end
|
||||
|
||||
add_index :geo_ip_databases, :is_active
|
||||
add_index :geo_ip_databases, :database_type
|
||||
add_index :geo_ip_databases, :file_path, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user