diff --git a/db/migrate/20191023183120_add_default_value_to_routing_criteria_name.rb b/db/migrate/20191023183120_add_default_value_to_routing_criteria_name.rb new file mode 100644 index 000000000..d9cd9fff7 --- /dev/null +++ b/db/migrate/20191023183120_add_default_value_to_routing_criteria_name.rb @@ -0,0 +1,5 @@ +class AddDefaultValueToRoutingCriteriaName < ActiveRecord::Migration[5.2] + def change + change_column :procedures, :routing_criteria_name, :text, default: "Votre ville" + end +end diff --git a/db/schema.rb b/db/schema.rb index 3736ce621..b4c4e4823 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: 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"