From 6614d42c6e3aedd51b0e9b2a2bb5d6f0a19fcad0 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Mon, 25 Mar 2019 03:06:19 -0500 Subject: hidden accounts + stats hiding --- db/migrate/20190325072307_add_hidden_to_accounts.rb | 5 +++++ db/schema.rb | 1 + 2 files changed, 6 insertions(+) create mode 100644 db/migrate/20190325072307_add_hidden_to_accounts.rb (limited to 'db') diff --git a/db/migrate/20190325072307_add_hidden_to_accounts.rb b/db/migrate/20190325072307_add_hidden_to_accounts.rb new file mode 100644 index 000000000..4a62d2523 --- /dev/null +++ b/db/migrate/20190325072307_add_hidden_to_accounts.rb @@ -0,0 +1,5 @@ +class AddHiddenToAccounts < ActiveRecord::Migration[5.2] + def change + add_column :accounts, :hidden, :boolean + end +end diff --git a/db/schema.rb b/db/schema.rb index 96961c812..be9818fa2 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -148,6 +148,7 @@ ActiveRecord::Schema.define(version: 2019_05_19_130537) do t.string "also_known_as", array: true t.datetime "silenced_at" t.datetime "suspended_at" + t.boolean "hidden" t.index "(((setweight(to_tsvector('simple'::regconfig, (display_name)::text), 'A'::\"char\") || setweight(to_tsvector('simple'::regconfig, (username)::text), 'B'::\"char\")) || setweight(to_tsvector('simple'::regconfig, (COALESCE(domain, ''::character varying))::text), 'C'::\"char\")))", name: "search_index", using: :gin t.index "lower((username)::text), lower((domain)::text)", name: "index_accounts_on_username_and_domain_lower", unique: true t.index ["moved_to_account_id"], name: "index_accounts_on_moved_to_account_id" -- cgit