<regent>
Curious if I'm on the right path or not. Here's what I'm thinking of adding so far: https://dpaste.org/3HOa
elcuervo has joined #ruby
cuerbot has quit [Ping timeout: 246 seconds]
lockweel has joined #ruby
m27frogy has joined #ruby
jla has quit [Ping timeout: 260 seconds]
jla has joined #ruby
pwnd_ has quit [Ping timeout: 260 seconds]
Technodrome has joined #ruby
pwnd_ has joined #ruby
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 258 seconds]
howdoi has joined #ruby
hiroaki_ has quit [Ping timeout: 260 seconds]
hiroaki has quit [Ping timeout: 260 seconds]
jla has quit [Ping timeout: 240 seconds]
hiroaki_ has joined #ruby
hiroaki has joined #ruby
kristian_on_linu has joined #ruby
DTZUZU has joined #ruby
Rudd0 has quit [Read error: Connection reset by peer]
DTZUZU_ has quit [Ping timeout: 265 seconds]
dpl has joined #ruby
TrufflePump has joined #ruby
TrufflePump has quit [Ping timeout: 258 seconds]
jla has joined #ruby
aloy has joined #ruby
kristian_on_linu has quit [Remote host closed the connection]
jla has quit [Ping timeout: 240 seconds]
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robotbee has joined #ruby
shtirlic_ has quit [Ping timeout: 240 seconds]
shtirlic has joined #ruby
DTZUZU_ has joined #ruby
DTZUZU has quit [Ping timeout: 240 seconds]
shtirlic_ has joined #ruby
BTRE has quit [Remote host closed the connection]
shtirlic has quit [Ping timeout: 265 seconds]
MalkbabY_ has joined #ruby
MalkbabY has quit [Ping timeout: 252 seconds]
ec is now known as ELLIOTTCABLE
shtirlic_ has quit [Ping timeout: 246 seconds]
howdoi has quit [Quit: Connection closed for inactivity]
shtirlic has joined #ruby
shtirlic_ has joined #ruby
manj-gnome has joined #ruby
manj-gnome is now known as OnePassenger
shtirlic has quit [Ping timeout: 265 seconds]
Technodrome has joined #ruby
OnePassenger has left #ruby ["Leaving"]
xf3rno has joined #ruby
roshanavand_ has joined #ruby
roshanavand__ has joined #ruby
perdent has quit [Ping timeout: 260 seconds]
roshanavand_ has quit [Ping timeout: 260 seconds]
ChmEarl has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jetchisel has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
bvdw has joined #ruby
Rudd0 has joined #ruby
naftilos76 has joined #ruby
DTZUZU has joined #ruby
DTZUZU_ has quit [Ping timeout: 240 seconds]
xf3rno has quit [Quit: WeeChat 2.8]
perdent has joined #ruby
andremedeiros has quit [Read error: Connection reset by peer]
perdent has quit [Max SendQ exceeded]
andremedeiros has joined #ruby
perdent has joined #ruby
perdent has quit [Max SendQ exceeded]
perdent has joined #ruby
perdent has quit [Max SendQ exceeded]
perdent has joined #ruby
perdent has quit [Max SendQ exceeded]
quiqueportac has joined #ruby
quiqueportac has left #ruby [#ruby]
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mnathani has joined #ruby
xf3rno has joined #ruby
cow[moo] has joined #ruby
xf3rno has quit [Quit: WeeChat 2.8]
cow[moo] has quit [Client Quit]
neshpion has joined #ruby
dpl has quit [Ping timeout: 260 seconds]
shtirlic_ has quit [Ping timeout: 265 seconds]
mnathani has quit []
TrufflePump has joined #ruby
fandre1986 has joined #ruby
cow[moo] has joined #ruby
BTRE has joined #ruby
dpl has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
AndreYuhai has joined #ruby
<AndreYuhai>
Hey there, I've got a DB table with a unique key consisting of multiple columns. I've got an ActiveRecord model that's corresponding to the table.
<AndreYuhai>
When I do Table.upsert_all array_of_hashes, shouldn't it update depending on the unique key?
johnny56 has joined #ruby
konsolebox has joined #ruby
<AndreYuhai>
Now whenever I do upsert all the same data gets inserted again and again instead of being updated
<AndreYuhai>
upsert_all *
johnny56 has quit [Client Quit]
vondruch has quit [Read error: Connection reset by peer]
quiqueportac has joined #ruby
quiqueportac has left #ruby ["WeeChat 2.8"]
MalkbabY has joined #ruby
lockweel has quit [Quit: Leaving]
dinfuehr has quit [Ping timeout: 268 seconds]
MalkbabY_ has quit [Ping timeout: 252 seconds]
dinfuehr has joined #ruby
cow[moo] has joined #ruby
<AndreYuhai>
Oh, just figured. When one of the columns in unique key is NULL Ruby still inserts the row.
TrufflePump has quit [Ping timeout: 258 seconds]
jetchisel has quit [Ping timeout: 268 seconds]
jetchisel has joined #ruby
neshpion has quit [Remote host closed the connection]
nertzy has quit [Quit: Leaving]
neshpion has joined #ruby
HannaM has joined #ruby
roshanavand__ has quit [Ping timeout: 240 seconds]
Technodrome has joined #ruby
konsolebox_ has joined #ruby
konsolebox has quit [Ping timeout: 240 seconds]
duderonomy has joined #ruby
naftilos76 has quit [Ping timeout: 260 seconds]
jla has joined #ruby
roshanavand has joined #ruby
AndreYuhai has quit [Remote host closed the connection]
asarch has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
shtirlic has joined #ruby
robotbee has quit [Ping timeout: 265 seconds]
fandre1986 has quit [Quit: Connection closed]
konsolebox_ has quit [Read error: Connection reset by peer]
RandomArcher has joined #ruby
Tumac55 has joined #ruby
asarch has quit [Quit: Leaving]
Tumac55 has left #ruby [#ruby]
RandomArcher has quit [Ping timeout: 240 seconds]
roshanavand_ has joined #ruby
roshanavand has quit [Ping timeout: 268 seconds]
TrufflePump has joined #ruby
konsolebox has joined #ruby
patr0clus has joined #ruby
johnny56 has joined #ruby
konsolebox has quit [Remote host closed the connection]
ur5us has joined #ruby
Technodrome has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
johnny56 has quit [Quit: johnny56]
johnny56 has joined #ruby
johnny56 has quit [Client Quit]
cow[moo] has joined #ruby
johnny56 has joined #ruby
entel has joined #ruby
johnny56 has quit [Client Quit]
jetchisel has quit [Ping timeout: 252 seconds]
johnny56 has joined #ruby
jla has quit [Ping timeout: 240 seconds]
jetchisel has joined #ruby
ruby[bot] has quit [Remote host closed the connection]
ruby[bot] has joined #ruby
johnny56 has quit [Quit: johnny56]
TomyLobo has joined #ruby
cow[moo] has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
robotmay has quit [Remote host closed the connection]