You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
316 B

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