From f30a62971ad08b08c7f5c50817cafdfca63b86dd Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Wed, 22 Aug 2018 18:33:45 +0200 Subject: [PATCH] Drop the cerfas table --- db/migrate/20180822162952_drop_cerfas.rb | 5 +++++ db/schema.rb | 13 +------------ 2 files changed, 6 insertions(+), 12 deletions(-) create mode 100644 db/migrate/20180822162952_drop_cerfas.rb diff --git a/db/migrate/20180822162952_drop_cerfas.rb b/db/migrate/20180822162952_drop_cerfas.rb new file mode 100644 index 000000000..0a48c0adb --- /dev/null +++ b/db/migrate/20180822162952_drop_cerfas.rb @@ -0,0 +1,5 @@ +class DropCerfas < ActiveRecord::Migration[5.2] + def change + drop_table :cerfas + end +end diff --git a/db/schema.rb b/db/schema.rb index 8358eb230..492fe9f51 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2018_08_08_142237) do +ActiveRecord::Schema.define(version: 2018_08_22_162952) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -158,16 +158,6 @@ ActiveRecord::Schema.define(version: 2018_08_08_142237) do t.datetime "updated_at" end - create_table "cerfas", id: :serial, force: :cascade do |t| - t.string "content" - t.integer "dossier_id" - t.datetime "created_at" - t.integer "user_id" - t.string "original_filename" - t.string "content_secure_token" - t.index ["dossier_id"], name: "index_cerfas_on_dossier_id" - end - create_table "champs", id: :serial, force: :cascade do |t| t.string "value" t.integer "type_de_champ_id" @@ -629,7 +619,6 @@ ActiveRecord::Schema.define(version: 2018_08_08_142237) do add_foreign_key "attestation_templates", "procedures" add_foreign_key "attestations", "dossiers" add_foreign_key "avis", "gestionnaires", column: "claimant_id" - add_foreign_key "cerfas", "dossiers" add_foreign_key "closed_mails", "procedures" add_foreign_key "commentaires", "dossiers" add_foreign_key "dossiers", "users"