Add switch private messages support

This commit is contained in:
KMY 2023-03-14 17:22:58 +09:00
parent 38100df205
commit 4439f0255c
8 changed files with 24 additions and 7 deletions

View file

@ -0,0 +1,5 @@
class AddGroupAllowPrivateMessageToAccounts < ActiveRecord::Migration[6.1]
def change
add_column :accounts, :group_allow_private_message, :boolean
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2023_03_14_021909) do
ActiveRecord::Schema.define(version: 2023_03_14_081013) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -187,6 +187,7 @@ ActiveRecord::Schema.define(version: 2023_03_14_021909) do
t.datetime "reviewed_at"
t.datetime "requested_review_at"
t.boolean "group_message_following_only"
t.boolean "group_allow_private_message"
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), COALESCE(lower((domain)::text), ''::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", where: "(moved_to_account_id IS NOT NULL)"