Remove: #611 グループシステム関係のカラムを複数削除 (#618)

This commit is contained in:
KMY(雪あすか) 2024-02-27 13:08:30 +09:00 committed by GitHub
parent 0767212284
commit aec832e257
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 29 additions and 97 deletions

View file

@ -0,0 +1,10 @@
# frozen_string_literal: true
class RemoveGroupAttrsFromAccounts < ActiveRecord::Migration[7.1]
def change
safety_assured do
remove_column :accounts, :group_allow_private_message, :boolean
remove_column :account_stats, :group_activitypub_count, :integer
end
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2024_02_18_233621) do
ActiveRecord::Schema[7.1].define(version: 2024_02_27_033337) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -98,7 +98,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_02_18_233621) do
t.datetime "created_at", precision: nil, null: false
t.datetime "updated_at", precision: nil, null: false
t.datetime "last_status_at", precision: nil
t.integer "group_activitypub_count"
t.index ["account_id"], name: "index_account_stats_on_account_id", unique: true
t.index ["last_status_at", "account_id"], name: "index_account_stats_on_last_status_at_and_account_id", order: { last_status_at: "DESC NULLS LAST" }
end
@ -189,7 +188,6 @@ ActiveRecord::Schema[7.1].define(version: 2024_02_18_233621) do
t.boolean "trendable"
t.datetime "reviewed_at", precision: nil
t.datetime "requested_review_at", precision: nil
t.boolean "group_allow_private_message"
t.integer "searchability", default: 2, null: false
t.jsonb "settings"
t.boolean "indexable", default: false, null: false