Added basic IP tracker functionality

This commit is contained in:
2022-12-22 12:50:01 -05:00
parent 97ced7d80e
commit 10345d5238
8 changed files with 117 additions and 0 deletions

View File

@ -0,0 +1,18 @@
Sequel.migration do
up do
create_table(:ip_addresses) do
primary_key :id
String :address, null: false
String :dns_name
String :comment
DateTime :created_at, default: Sequel::CURRENT_TIMESTAMP
DateTime :updated_at, default: Sequel::CURRENT_TIMESTAMP
end
end
down do
drop_table(:ip_addresses)
end
end