1
0
Fork 0
forked from gitea/nas

Add domainblocks to reject_reply_exclude_followers

This commit is contained in:
KMY 2023-05-12 21:46:28 +09:00
parent f84a002675
commit 3fa8efaf93
12 changed files with 50 additions and 9 deletions

View file

@ -0,0 +1,8 @@
# frozen_string_literal: true
class AddRejectReplyExcludeFollowersToDomainBlocks < ActiveRecord::Migration[6.1]
def change
add_column :domain_blocks, :reject_reply_exclude_followers, :boolean, null: false, default: false
add_index :domain_blocks, :reject_reply_exclude_followers
end
end

View file

@ -12,7 +12,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2023_05_10_033040) do
ActiveRecord::Schema.define(version: 2023_05_12_122757) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -512,6 +512,7 @@ ActiveRecord::Schema.define(version: 2023_05_10_033040) do
t.boolean "hidden", default: false, null: false
t.boolean "hidden_anonymous", default: false, null: false
t.boolean "detect_invalid_subscription", default: false, null: false
t.boolean "reject_reply_exclude_followers", default: false, null: false
t.index ["domain"], name: "index_domain_blocks_on_domain", unique: true
end