Add hidden parameter to domain blocks

This commit is contained in:
KMY 2023-04-28 08:52:50 +09:00
parent 9e055d1439
commit 565e60d0db
9 changed files with 34 additions and 7 deletions

View file

@ -0,0 +1,6 @@
class AddHiddenToDomainBlocks < ActiveRecord::Migration[6.1]
def change
add_column :domain_blocks, :hidden, :boolean, null: false, default: false
add_column :domain_blocks, :hidden_anonymous, :boolean, null: false, default: false
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_04_27_122753) do
ActiveRecord::Schema.define(version: 2023_04_27_233749) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -479,6 +479,8 @@ ActiveRecord::Schema.define(version: 2023_04_27_122753) do
t.boolean "reject_hashtag", default: false, null: false
t.boolean "reject_straight_follow", default: false, null: false
t.boolean "reject_new_follow", default: false, null: false
t.boolean "hidden", default: false, null: false
t.boolean "hidden_anonymous", default: false, null: false
t.index ["domain"], name: "index_domain_blocks_on_domain", unique: true
end