about summary refs log tree commit diff
path: root/db/post_migrate/20220429101025_remove_ips_from_email_domain_blocks.rb
blob: fbb74d99eb00a5a33c4f2e1c4e5b9c9d0e7e7e41 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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