demarches-normaliennes/db/migrate/20170306102116_create_received_mails.rb
2017-03-07 10:44:10 +01:00

12 lines
322 B
Ruby

class CreateReceivedMails < ActiveRecord::Migration[5.0]
def change
create_table :received_mails do |t|
t.text :body
t.text :object
t.references :procedure, foreign_key: true
t.column :created_at, :timestamp, null: true
t.column :updated_at, :timestamp, null: true
end
end
end