mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
a29a982eaa
* Change e-mail domain blocks to block IPs dynamically * Update app/workers/scheduler/email_domain_block_refresh_scheduler.rb Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh> * Update app/workers/scheduler/email_domain_block_refresh_scheduler.rb Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh> Co-authored-by: Yamagishi Kazutoshi <ykzts@desire.sh>
7 lines
213 B
Ruby
7 lines
213 B
Ruby
class AddIpsToEmailDomainBlocks < ActiveRecord::Migration[6.1]
|
|
def change
|
|
add_column :email_domain_blocks, :ips, :inet, array: true
|
|
add_column :email_domain_blocks, :last_refresh_at, :datetime
|
|
end
|
|
end
|