Re: How to append data on existing field

2018-10-22 Thread Jeremy Evans
On Monday, October 22, 2018 at 6:22:03 PM UTC-7, genc wrote: > > Hi Jeremy, > > I am trying to achieve this: > > update files set name = '--DELETED--' || files.name > > basically i would like to prepend deleted text to fields. How can I do > that with Sequel? I couldn't find any documentation

How to append data on existing field

2018-10-22 Thread genc
Hi Jeremy, I am trying to achieve this: update files set name = '--DELETED--' || files.name basically i would like to prepend deleted text to fields. How can I do that with Sequel? I couldn't find any documentation about transforming existing data on the fly with sequel. I tried something

Re: #destroy able to be called on a Dataset object and destroy hooks are being run?

2018-10-22 Thread Jeremy Evans
On Monday, October 22, 2018 at 2:58:11 AM UTC-7, Eugene Lai wrote: > > Hi, > > Reading through here > > the documentation for Model hooks says in several places that hooks will > only be called if they are called on a

#destroy able to be called on a Dataset object and destroy hooks are being run?

2018-10-22 Thread Eugene Lai
Hi, Reading through here the documentation for Model hooks says in several places that hooks will only be called if they are called on a Model and not a Dataset object. It also states that the return from something like