mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Bump rubocop_discourse (#29608)
This commit is contained in:
committed by
GitHub
parent
ff494f2f94
commit
57f4176b57
@@ -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) }
|
||||
|
||||
@@ -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) }
|
||||
|
||||
@@ -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) }
|
||||
|
||||
@@ -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) }
|
||||
|
||||
Reference in New Issue
Block a user