won't mention the prio column in the ON CONFLICT part resulting in no update. However, when upserting like so:
id = Hardware.upsert(prio: hw[:prio]).id
did indeed update the record in the database (back to its default value). Am not sure if this is (a bug/an issue), but thought I would drop this here. Thanks for all the work on the nice Gem!
We found that when
1) having a default in the database (here for a table called
hardwares
)2) having an existing entry in the database with a non default value for
prio
like: 998 with id: 1That upserting like so:
won't mention the
prio
column in theON CONFLICT
part resulting in no update. However, when upserting like so:did indeed update the record in the database (back to its default value). Am not sure if this is (a bug/an issue), but thought I would drop this here. Thanks for all the work on the nice Gem!