From bdc0ee61261486793f979c01d037be0dd8921a8e Mon Sep 17 00:00:00 2001 From: Frederic Merizen Date: Tue, 2 Oct 2018 18:46:08 +0200 Subject: [PATCH] Remove unused column --- ...move_old_displayed_fields_from_procedure_presentations.rb | 5 +++++ db/schema.rb | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 db/migrate/20181002164310_remove_old_displayed_fields_from_procedure_presentations.rb diff --git a/db/migrate/20181002164310_remove_old_displayed_fields_from_procedure_presentations.rb b/db/migrate/20181002164310_remove_old_displayed_fields_from_procedure_presentations.rb new file mode 100644 index 00000000000..f77f9de2648 --- /dev/null +++ b/db/migrate/20181002164310_remove_old_displayed_fields_from_procedure_presentations.rb @@ -0,0 +1,5 @@ +class RemoveOldDisplayedFieldsFromProcedurePresentations < ActiveRecord::Migration[5.2] + def change + remove_column :procedure_presentations, :old_displayed_fields + end +end diff --git a/db/schema.rb b/db/schema.rb index 38f6cfb18a7..b93d621b680 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_10_02_162757) do +ActiveRecord::Schema.define(version: 2018_10_02_164310) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -425,7 +425,6 @@ create_table "procedure_presentations", id: :serial, force: :cascade do |t| t.integer "assign_to_id" - t.text "old_displayed_fields", default: ["{\"label\":\"Demandeur\",\"table\":\"user\",\"column\":\"email\"}"], null: false, array: true t.jsonb "sort", default: {"order"=>"desc", "table"=>"notifications", "column"=>"notifications"}, null: false t.jsonb "filters", default: {"tous"=>[], "suivis"=>[], "traites"=>[], "a-suivre"=>[], "archives"=>[]}, null: false t.datetime "created_at"