about summary refs log tree commit diff
path: root/db/migrate/20201008202037_create_ip_blocks.rb
blob: 32acd6ede1759c0d172b9c46ac1c6a3a4fabdd30 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
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