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

12 lines
324 B
Ruby

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