Merge remote-tracking branch 'parent/main' into kb_development
This commit is contained in:
commit
ec7b51504b
42 changed files with 498 additions and 227 deletions
|
@ -0,0 +1,14 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class MigrateModerationWarningNotificationsFromAccount < ActiveRecord::Migration[7.1]
|
||||
disable_ddl_transaction!
|
||||
|
||||
class Notification < ApplicationRecord; end
|
||||
|
||||
def up
|
||||
Notification.where(type: 'moderation_warning').in_batches.update_all('from_account_id = account_id')
|
||||
end
|
||||
|
||||
# No need to reinstate this information as it is a privacy issue.
|
||||
def down; end
|
||||
end
|
|
@ -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_04_26_000034) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2024_04_26_233435) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue