fix schema about prefilled default

This commit is contained in:
sebastiencarceles 2022-12-14 10:15:30 +01:00
parent ba34b73437
commit 4e1dff0dce
2 changed files with 2 additions and 2 deletions

View file

@ -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"

View file

@ -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