The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

9 lines
281 B

  1. class AddIndexDomainToEmailDomainBlocks < ActiveRecord::Migration[5.1]
  2. disable_ddl_transaction!
  3. def change
  4. add_index :email_domain_blocks, :domain, algorithm: :concurrently, unique: true
  5. change_column_default :email_domain_blocks, :domain, from: nil, to: ''
  6. end
  7. end