This repository has been archived on 2021-11-24. You can view files and clone it, but cannot push or open issues or pull requests.
phone_app/db/migrate/20210627155534_create_mail_hists.rb
2021-08-23 10:26:02 +02:00

35 lines
643 B
Ruby

class CreateMailHists < ActiveRecord::Migration[6.0]
def change
create_table :mail_hists do |t|
t.references :lang_site
t.string :from_email
t.string :to_email
t.string :subject
t.text :body
t.string :subject_send
t.text :body_send
t.references :mail_content, foreign_key: true
t.references :mail_type, foreign_key: true
t.string :element_type
t.integer :element_id
t.integer :w_biker_id
t.boolean :mj_read
t.string :mj_token
t.integer :nbr_send
t.timestamps
end
end
end