diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2022-10-25 21:43:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-25 21:43:44 +0200 |
commit | 487d81fb92350974e20ee220553a10b5229f0880 (patch) | |
tree | 00ad8445858c85ef56e2e2d2fc08b29c522d0d60 /db/schema.rb | |
parent | 6f01111863bfb15b3574c95c8d60d59ae1d79772 (diff) |
Fix IP blocks not having a unique index (#19456)
Diffstat (limited to 'db/schema.rb')
-rw-r--r-- | db/schema.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/db/schema.rb b/db/schema.rb index ed00d9e74..d7e40b133 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2022_10_21_055441) do +ActiveRecord::Schema.define(version: 2022_10_25_171544) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -521,6 +521,7 @@ ActiveRecord::Schema.define(version: 2022_10_21_055441) do t.inet "ip", default: "0.0.0.0", null: false t.integer "severity", default: 0, null: false t.text "comment", default: "", null: false + t.index ["ip"], name: "index_ip_blocks_on_ip", unique: true end create_table "list_accounts", force: :cascade do |t| |