Merge branch 'main' into glitch-soc/merge-upstream
Conflicts: - `app/javascript/packs/admin.js`: Conflicts due to glitch-soc's theming system. Upstream changes have been ported to `app/javascript/core/admin.js` - `app/models/trends/statuses.rb`: Minor conflict due to glitch-soc's option to allow CWed toots in trends. Ported upstream changes.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class RemoveIpsFromEmailDomainBlocks < ActiveRecord::Migration[5.2]
|
||||
disable_ddl_transaction!
|
||||
|
||||
def change
|
||||
safety_assured do
|
||||
remove_column :email_domain_blocks, :ips, :inet, array: true
|
||||
remove_column :email_domain_blocks, :last_refresh_at, :datetime
|
||||
end
|
||||
end
|
||||
end
|
14
db/post_migrate/20220429101850_clear_email_domain_blocks.rb
Normal file
14
db/post_migrate/20220429101850_clear_email_domain_blocks.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class ClearEmailDomainBlocks < ActiveRecord::Migration[5.2]
|
||||
disable_ddl_transaction!
|
||||
|
||||
class EmailDomainBlock < ApplicationRecord
|
||||
end
|
||||
|
||||
def up
|
||||
EmailDomainBlock.where.not(parent_id: nil).in_batches.delete_all
|
||||
end
|
||||
|
||||
def down; end
|
||||
end
|
Reference in New Issue
Block a user