mirror of https://github.com/docusealco/docuseal
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.
15 lines
401 B
15 lines
401 B
# 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
|