From c5c330e1dfaeae85e85f4eb17e19fb2434ba9ac5 Mon Sep 17 00:00:00 2001 From: gregoirenovel Date: Thu, 1 Feb 2018 17:52:45 +0100 Subject: [PATCH] Drop the Notifications table --- db/migrate/20180201163642_drop_notifications.rb | 5 +++++ db/schema.rb | 12 +----------- 2 files changed, 6 insertions(+), 11 deletions(-) create mode 100644 db/migrate/20180201163642_drop_notifications.rb diff --git a/db/migrate/20180201163642_drop_notifications.rb b/db/migrate/20180201163642_drop_notifications.rb new file mode 100644 index 000000000..05bd9b347 --- /dev/null +++ b/db/migrate/20180201163642_drop_notifications.rb @@ -0,0 +1,5 @@ +class DropNotifications < ActiveRecord::Migration[5.0] + def change + drop_table :notifications + end +end diff --git a/db/schema.rb b/db/schema.rb index ab3be6bdd..95d468ba7 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: 20180111153308) do +ActiveRecord::Schema.define(version: 20180201163642) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -332,16 +332,6 @@ ActiveRecord::Schema.define(version: 20180111153308) do t.index ["procedure_id"], name: "index_module_api_cartos_on_procedure_id", unique: true, using: :btree end - create_table "notifications", force: :cascade do |t| - t.boolean "already_read", default: false - t.string "liste", array: true - t.string "type_notif" - t.datetime "created_at" - t.datetime "updated_at" - t.integer "dossier_id" - t.index ["dossier_id"], name: "index_notifications_on_dossier_id", using: :btree - end - create_table "pieces_justificatives", force: :cascade do |t| t.string "content" t.integer "dossier_id"