demarches-normaliennes/db/migrate/20170302105557_create_initiated_mails.rb

12 lines
268 B
Ruby
Raw Normal View History

2017-03-07 10:25:28 +01:00
class CreateInitiatedMails < ActiveRecord::Migration[5.0]
def change
create_table :initiated_mails do |t|
2017-03-07 16:23:44 +01:00
t.string :object
2017-03-07 10:25:28 +01:00
t.text :body
t.belongs_to :procedure, index: true, unique: true, foreign_key: true
2017-03-07 10:39:39 +01:00
t.timestamps
2017-03-07 10:25:28 +01:00
end
end
end