extract email assets

This commit is contained in:
Pete Matsyburka
2026-06-29 12:30:10 +03:00
parent 065dcf6f9f
commit 6ed5b5d35d
8 changed files with 127 additions and 6 deletions
@@ -0,0 +1,14 @@
# frozen_string_literal: true
class CreateEmailMessageAssets < ActiveRecord::Migration[8.1]
def change
create_table :email_message_assets do |t|
t.references :account, null: false, foreign_key: true, index: false
t.text :data, null: false
t.string :sha1, null: false
t.timestamps
end
add_index :email_message_assets, %i[account_id sha1], unique: true
end
end