~cytrogen/masto-fe

ref: 1a2a4c389fedf4e16457c10d9dbd6aa39fc3f794 masto-fe/db/migrate/20210416200740_create_canonical_email_blocks.rb -rw-r--r-- 372 bytes
1a2a4c38 — github-actions[bot] New Crowdin Translations (automated) (#27347) 2 years ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

class CreateCanonicalEmailBlocks < ActiveRecord::Migration[6.1]
  def change
    create_table :canonical_email_blocks do |t|
      t.string :canonical_email_hash, null: false, default: '', index: { unique: true }
      t.belongs_to :reference_account, null: false, foreign_key: { to_table: 'accounts' }

      t.timestamps
    end
  end
end