From 1d3e5bdd24f25e1870f3d3bec1c81040a423f138 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Wed, 26 Aug 2020 13:56:20 -0500 Subject: [Spam Prevention] Add username confirmation and simple, frictionless anti-spam mechanism --- db/migrate/20200826125821_add_username_and_nospam_to_users.rb | 6 ++++++ db/schema.rb | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20200826125821_add_username_and_nospam_to_users.rb (limited to 'db') diff --git a/db/migrate/20200826125821_add_username_and_nospam_to_users.rb b/db/migrate/20200826125821_add_username_and_nospam_to_users.rb new file mode 100644 index 000000000..9a964b980 --- /dev/null +++ b/db/migrate/20200826125821_add_username_and_nospam_to_users.rb @@ -0,0 +1,6 @@ +class AddUsernameAndNospamToUsers < ActiveRecord::Migration[5.2] + def change + add_column :users, :username, :string + add_column :users, :kobold, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 2aa5f6dee..9ee9c345d 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: 2020_08_23_002835) do +ActiveRecord::Schema.define(version: 2020_08_26_125821) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -1000,6 +1000,8 @@ ActiveRecord::Schema.define(version: 2020_08_23_002835) do t.boolean "approved", default: true, null: false t.string "sign_in_token" t.datetime "sign_in_token_sent_at" + t.string "username" + t.string "kobold" t.index ["account_id"], name: "index_users_on_account_id" t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true t.index ["created_by_application_id"], name: "index_users_on_created_by_application_id" -- cgit