2017-03-06 11:51:34 +01:00
|
|
|
class CreateReceivedMails < ActiveRecord::Migration[5.0]
|
|
|
|
def change
|
|
|
|
create_table :received_mails do |t|
|
|
|
|
t.text :body
|
2017-03-07 16:23:44 +01:00
|
|
|
t.string :object
|
2017-03-06 11:51:34 +01:00
|
|
|
t.references :procedure, foreign_key: true
|
|
|
|
|
2017-03-07 10:39:56 +01:00
|
|
|
t.column :created_at, :timestamp, null: true
|
|
|
|
t.column :updated_at, :timestamp, null: true
|
2017-03-06 11:51:34 +01:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|