Migration : re_instructed_at à Dossier et ajoute le re_instructed_mails
This commit is contained in:
parent
7926948c0d
commit
f692a9e5e4
3 changed files with 30 additions and 3 deletions
|
@ -0,0 +1,5 @@
|
|||
class AddReInstructedAtToDossiers < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
add_column :dossiers, :re_instructed_at, :datetime
|
||||
end
|
||||
end
|
12
db/migrate/20231107150217_create_re_instructed_mails.rb
Normal file
12
db/migrate/20231107150217_create_re_instructed_mails.rb
Normal file
|
@ -0,0 +1,12 @@
|
|||
class CreateReInstructedMails < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :re_instructed_mails do |t|
|
||||
t.text :body
|
||||
t.string :subject
|
||||
t.integer :procedure_id, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
add_index :re_instructed_mails, :procedure_id
|
||||
end
|
||||
end
|
16
db/schema.rb
16
db/schema.rb
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_11_03_084116) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_11_07_150217) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
|
@ -422,6 +422,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_11_03_084116) do
|
|||
t.boolean "prefilled"
|
||||
t.string "private_search_terms"
|
||||
t.datetime "processed_at", precision: 6
|
||||
t.datetime "re_instructed_at"
|
||||
t.bigint "revision_id"
|
||||
t.string "search_terms"
|
||||
t.string "state"
|
||||
|
@ -878,12 +879,21 @@ ActiveRecord::Schema[7.0].define(version: 2023_11_03_084116) do
|
|||
t.index ["zone_id"], name: "index_procedures_zones_on_zone_id"
|
||||
end
|
||||
|
||||
create_table "re_instructed_mails", force: :cascade do |t|
|
||||
t.text "body"
|
||||
t.datetime "created_at", null: false
|
||||
t.integer "procedure_id", null: false
|
||||
t.string "subject"
|
||||
t.datetime "updated_at", null: false
|
||||
t.index ["procedure_id"], name: "index_re_instructed_mails_on_procedure_id"
|
||||
end
|
||||
|
||||
create_table "received_mails", id: :serial, force: :cascade do |t|
|
||||
t.text "body"
|
||||
t.datetime "created_at", precision: 6, null: false
|
||||
t.datetime "created_at", precision: nil, null: false
|
||||
t.integer "procedure_id"
|
||||
t.string "subject"
|
||||
t.datetime "updated_at", precision: 6, null: false
|
||||
t.datetime "updated_at", precision: nil, null: false
|
||||
t.index ["procedure_id"], name: "index_received_mails_on_procedure_id"
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue