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

12 lines
266 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|
t.text :object
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