DEV: Bump rubocop_discourse (#29608)

This commit is contained in:
Alan Guo Xiang Tan
2024-11-06 06:27:49 +08:00
committed by GitHub
parent ff494f2f94
commit 57f4176b57
64 changed files with 192 additions and 192 deletions

View File

@@ -3,7 +3,7 @@
require "migration/column_dropper"
class DropGroupLockedTrustLevelFromUser < ActiveRecord::Migration[5.2]
DROPPED_COLUMNS ||= { posts: %i[group_locked_trust_level] }
DROPPED_COLUMNS = { posts: %i[group_locked_trust_level] }
def up
DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) }

View File

@@ -3,7 +3,7 @@
require "migration/table_dropper"
class DropUnusedAuthTablesAgain < ActiveRecord::Migration[5.2]
DROPPED_TABLES ||= %i[facebook_user_infos twitter_user_infos]
DROPPED_TABLES = %i[facebook_user_infos twitter_user_infos]
def up
DROPPED_TABLES.each { |table| Migration::TableDropper.execute_drop(table) }

View File

@@ -3,7 +3,7 @@
require "migration/table_dropper"
class DropGithubUserInfos < ActiveRecord::Migration[6.0]
DROPPED_TABLES ||= %i[github_user_infos]
DROPPED_TABLES = %i[github_user_infos]
def up
DROPPED_TABLES.each { |table| Migration::TableDropper.execute_drop(table) }

View File

@@ -1,6 +1,6 @@
# frozen_string_literal: true
class DropPasswordColumnsFromUsers < ActiveRecord::Migration[7.1]
DROPPED_COLUMNS ||= { users: %i[password_hash salt password_algorithm] }
DROPPED_COLUMNS = { users: %i[password_hash salt password_algorithm] }
def up
DROPPED_COLUMNS.each { |table, columns| Migration::ColumnDropper.execute_drop(table, columns) }