Merge pull request #9386 from demarches-simplifiees/remove-routing-criteria-name-column

Tech : supprime la colonne procedures#routing_criteria_name
This commit is contained in:
Eric Leroy-Terquem 2023-08-03 11:22:45 +00:00 committed by GitHub
commit 98909f922b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 4 deletions

View file

@ -12,8 +12,7 @@ class Procedure < ApplicationRecord
:durees_conservation_required,
:cerfa_flag,
:test_started_at,
:lien_demarche,
:routing_criteria_name
:lien_demarche
]
default_scope -> { kept }

View file

@ -0,0 +1,7 @@
class RemoveRoutingCriteriaNameColumn < ActiveRecord::Migration[7.0]
def change
safety_assured do
remove_column :procedures, :routing_criteria_name, :string, default: "Votre ville"
end
end
end

View file

@ -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_08_02_121131) do
ActiveRecord::Schema[7.0].define(version: 2023_08_02_161011) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@ -777,7 +777,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_08_02_121131) do
t.datetime "published_at", precision: 6
t.bigint "published_revision_id"
t.bigint "replaced_by_procedure_id"
t.text "routing_criteria_name", default: "Votre ville"
t.boolean "routing_enabled"
t.bigint "service_id"
t.jsonb "sva_svr", default: {}, null: false