diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-04-25 12:37:40 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-05-21 03:16:22 -0500 |
commit | 9d4f42fb893c2129aa9f7aa9d012112af3646cae (patch) | |
tree | e64554e653d02195b5a220974ff3f635c7892cb4 /db | |
parent | fb449f273a04545043a792b9fa63fdcc5b6b60b1 (diff) |
Add option to hide public replies from profile
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20190425165151_add_replies_to_accounts.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/db/migrate/20190425165151_add_replies_to_accounts.rb b/db/migrate/20190425165151_add_replies_to_accounts.rb new file mode 100644 index 000000000..ce7543d89 --- /dev/null +++ b/db/migrate/20190425165151_add_replies_to_accounts.rb @@ -0,0 +1,5 @@ +class AddRepliesToAccounts < ActiveRecord::Migration[5.2] + def change + safety_assured { add_column :accounts, :replies, :boolean, default: true, null: false } + end +end diff --git a/db/schema.rb b/db/schema.rb index e90f90307..cd028b0b8 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -151,6 +151,7 @@ ActiveRecord::Schema.define(version: 2019_05_19_130537) do t.boolean "hidden" t.boolean "hidden", default: false, null: false t.jsonb "vars", default: {}, null: false + t.boolean "replies", default: true, null: false 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" |