1
0

20201008202037_create_ip_blocks.rb 347 B

1234567891011121314
  1. # frozen_string_literal: true
  2. class CreateIpBlocks < ActiveRecord::Migration[5.2]
  3. def change
  4. create_table :ip_blocks do |t|
  5. t.inet :ip, null: false, default: '0.0.0.0'
  6. t.integer :severity, null: false, default: 0
  7. t.datetime :expires_at
  8. t.text :comment, null: false, default: ''
  9. t.timestamps
  10. end
  11. end
  12. end