2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-10-03 17:21:20 +08:00

DEV: Promote historic post_deploy migrations (#34273)

This commit promotes all post_deploy migrations which existed in
Discourse v3.4.0 (timestamp <= 20241023041126)
This commit is contained in:
Alan Guo Xiang Tan 2025-08-13 14:10:50 +08:00 committed by GitHub
parent a2129c5c28
commit 9f12dd28f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 0 additions and 19 deletions

View file

@ -1,10 +1,6 @@
# frozen_string_literal: true

class Notification < ActiveRecord::Base
self.ignored_columns = [
:old_id, # TODO: Remove once 20240829140226_drop_old_notification_id_columns has been promoted to pre-deploy
]

attr_accessor :acting_user
attr_accessor :acting_username


View file

@ -1,10 +1,6 @@
# frozen_string_literal: true

class ShelvedNotification < ActiveRecord::Base
self.ignored_columns = [
:old_notification_id, # TODO: Remove once 20240829140226_drop_old_notification_id_columns has been promoted to pre-deploy
]

belongs_to :notification

def process

View file

@ -1,13 +1,6 @@
# frozen_string_literal: true

class User < ActiveRecord::Base
self.ignored_columns = [
:salt, # TODO: Remove when DropPasswordColumnsFromUsers has been promoted to pre-deploy.
:password_hash, # TODO: Remove when DropPasswordColumnsFromUsers has been promoted to pre-deploy.
:password_algorithm, # TODO: Remove when DropPasswordColumnsFromUsers has been promoted to pre-deploy.
:old_seen_notification_id, # TODO: Remove once 20240829140226_drop_old_notification_id_columns has been promoted to pre-deploy
]

include Searchable
include Roleable
include HasCustomFields

View file

@ -1,10 +1,6 @@
# frozen_string_literal: true

class UserBadge < ActiveRecord::Base
self.ignored_columns = [
:old_notification_id, # TODO: Remove once 20240829140226_drop_old_notification_id_columns has been promoted to pre-deploy
]

belongs_to :badge
belongs_to :user
belongs_to :granted_by, class_name: "User"