demarches-normaliennes/db/migrate/20170306102116_create_received_mails.rb

13 lines
324 B
Ruby
Raw Normal View History

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
t.references :procedure, foreign_key: true
t.column :created_at, :timestamp, null: true
t.column :updated_at, :timestamp, null: true
end
end
end