EvoBal/db/migrate/20201017104739_create_emails.rb

21 lines
450 B
Ruby

class CreateEmails < ActiveRecord::Migration[6.0]
def change
create_table :emails do |t|
t.string :message_id
t.string :subject
t.datetime :date
t.string :to
t.string :delivered_to
t.string :from
t.text :plain_body
t.text :raw_headers
t.boolean :cron
t.boolean :mailing_list
t.string :clients
t.string :servers
t.string :tickets
t.timestamps
end
end
end