logo

mastofe

My custom branche(s) on git.pleroma.social/pleroma/mastofe git clone https://hacktivis.me/git/mastofe.git

20171114080328_add_index_domain_to_email_domain_blocks.rb (281B)


  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