Migration: add defaut value to routing critéria

This commit is contained in:
simon lehericey 2019-10-23 20:42:34 +02:00
parent e97c705628
commit 7a922f46b2
2 changed files with 7 additions and 2 deletions

View file

@ -0,0 +1,5 @@
class AddDefaultValueToRoutingCriteriaName < ActiveRecord::Migration[5.2]
def change
change_column :procedures, :routing_criteria_name, :text, default: "Votre ville"
end
end

View file

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_10_14_160538) do
ActiveRecord::Schema.define(version: 2019_10_23_183120) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@ -486,7 +486,7 @@ ActiveRecord::Schema.define(version: 2019_10_14_160538) do
t.string "path", null: false
t.string "declarative_with_state"
t.text "monavis_embed"
t.text "routing_criteria_name"
t.text "routing_criteria_name", default: "Votre ville"
t.boolean "csv_export_queued"
t.boolean "xlsx_export_queued"
t.boolean "ods_export_queued"