Add ability to block words in usernames (#35407)
This commit is contained in:
13
db/schema.rb
13
db/schema.rb
@@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_06_27_132728) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_07_17_003848) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
||||
@@ -1238,6 +1238,17 @@ ActiveRecord::Schema[8.0].define(version: 2025_06_27_132728) do
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "username_blocks", force: :cascade do |t|
|
||||
t.string "username", null: false
|
||||
t.string "normalized_username", null: false
|
||||
t.boolean "exact", default: false, null: false
|
||||
t.boolean "allow_with_approval", default: false, null: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.index "lower((username)::text)", name: "index_username_blocks_on_username_lower_btree", unique: true
|
||||
t.index ["normalized_username"], name: "index_username_blocks_on_normalized_username"
|
||||
end
|
||||
|
||||
create_table "users", force: :cascade do |t|
|
||||
t.string "email", default: "", null: false
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
|
||||
Reference in New Issue
Block a user