This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
2023-07-12 09:47:08 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-10-12 16:33:49 +02:00
|
|
|
class CreateIpBlocks < ActiveRecord::Migration[5.2]
|
|
|
|
def change
|
|
|
|
create_table :ip_blocks do |t|
|
|
|
|
t.inet :ip, null: false, default: '0.0.0.0'
|
|
|
|
t.integer :severity, null: false, default: 0
|
|
|
|
t.datetime :expires_at
|
|
|
|
t.text :comment, null: false, default: ''
|
|
|
|
|
|
|
|
t.timestamps
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|