diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-17 19:11:35 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-17 19:11:35 -0600 |
commit | a5c518b1df9ad6253f9d3f79c35e27429b792e8e (patch) | |
tree | a3da27491fcbafa83959768c6dd7d640bddc329f /db | |
parent | 1391f441882ec27b01846868311d3090394ae8b9 (diff) |
Add `filter_undescribed` column to `accounts` table.
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb b/db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb new file mode 100644 index 000000000..10a037bfe --- /dev/null +++ b/db/migrate/20191118005833_add_filter_undescribed_to_accounts.rb @@ -0,0 +1,5 @@ +class AddFilterUndescribedToAccounts < ActiveRecord::Migration[5.2] + def change + add_column :accounts, :filter_undescribed, :boolean, default: false, null: false + end +end diff --git a/db/schema.rb b/db/schema.rb index 958a1dd49..93b770e2d 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: 2019_11_16_233416) do +ActiveRecord::Schema.define(version: 2019_11_18_005833) do # These are extensions that must be enabled in order to support this database enable_extension "pg_trgm" @@ -160,6 +160,7 @@ ActiveRecord::Schema.define(version: 2019_11_16_233416) do t.boolean "force_private", default: false, null: false t.boolean "unboostable", default: false, null: false t.boolean "block_anon", default: false, null: false + t.boolean "filter_undescribed", default: false, 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" @@ -707,10 +708,9 @@ ActiveRecord::Schema.define(version: 2019_11_16_233416) do t.index ["in_reply_to_account_id"], name: "index_statuses_on_in_reply_to_account_id" t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id" t.index ["network"], name: "index_statuses_on_network", where: "network" + t.index ["normalized_text"], name: "index_statuses_on_normalized_text_trgm", opclass: :gin_trgm_ops, using: :gin t.index ["origin"], name: "index_statuses_on_origin", unique: true t.index ["reblog_of_id", "account_id"], name: "index_statuses_on_reblog_of_id_and_account_id" - t.index ["spoiler_text"], name: "index_statuses_on_spoiler_text_trgm", opclass: :gin_trgm_ops, using: :gin - t.index ["text"], name: "index_statuses_on_text_trgm", opclass: :gin_trgm_ops, using: :gin t.index ["uri"], name: "index_statuses_on_uri", unique: true end |