diff --git a/db/schema.rb b/db/schema.rb index becdf28c5..309bb650c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -220,7 +220,7 @@ ActiveRecord::Schema.define(version: 2022_12_05_144624) do t.string "external_id" t.string "fetch_external_data_exceptions", array: true t.bigint "parent_id" - t.boolean "prefilled", default: false + t.boolean "prefilled" t.boolean "private", default: false, null: false t.datetime "rebased_at" t.integer "row" diff --git a/spec/models/concern/dossier_prefillable_concern_spec.rb b/spec/models/concern/dossier_prefillable_concern_spec.rb index ddf79fe65..9cd2b16d8 100644 --- a/spec/models/concern/dossier_prefillable_concern_spec.rb +++ b/spec/models/concern/dossier_prefillable_concern_spec.rb @@ -50,7 +50,7 @@ RSpec.describe DossierPrefillableConcern do end it "still marks it as prefilled" do - expect { fill }.to change { dossier.champs_public.first.prefilled }.from(false).to(true) + expect { fill }.to change { dossier.champs_public.first.prefilled }.from(nil).to(true) end end end