21 lines
450 B
Ruby
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
|