raven/db/migrations/0005_add_ip_table.rb

19 lines
358 B
Ruby
Raw Permalink Normal View History

2022-12-22 12:50:01 -05:00
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