Re: [Rails] find_or_create_by rolls back

2018-02-01 Thread fugee ohu
On Thursday, February 1, 2018 at 3:51:37 AM UTC-5, Colin Law wrote: > > On 1 February 2018 at 07:30, fugee ohu > wrote: > >> I'm having find_or_create_by roll back on me in the console directly from >> the model I'm not providing an id, the mysql id column is autoincrement

Re: [Rails] find_or_create_by rolls back

2018-02-01 Thread fugee ohu
On Thursday, February 1, 2018 at 8:54:56 AM UTC-5, Colin Law wrote: > > On 1 February 2018 at 13:49, fugee ohu > wrote: > >> >> >> On Thursday, February 1, 2018 at 3:51:37 AM UTC-5, Colin Law wrote: >>> >>> On 1 February 2018 at 07:30, fugee ohu wrote:

Re: [Rails] find_or_create_by rolls back

2018-02-01 Thread Colin Law
On 1 February 2018 at 13:49, fugee ohu wrote: > > > On Thursday, February 1, 2018 at 3:51:37 AM UTC-5, Colin Law wrote: >> >> On 1 February 2018 at 07:30, fugee ohu wrote: >> >>> I'm having find_or_create_by roll back on me in the console directly >>> from

[Rails] [ANN] Rails 5.1.5.rc1 has been released!

2018-02-01 Thread Rafael Mendonça França
Hi everyone, I am happy to announce that Rails 5.1.5.rc1 has been released. If no regressions are found, expect the final release on Tuesday, February 6, 2018. If you find one, please open an [issue on GitHub](https://github.com/rails/rails/issues/new) and mention me (@rafaelfranca) on it, so

Re: [Rails] find_or_create_by rolls back

2018-02-01 Thread Rob Biedenharn
> On 2018-Feb-1, at 09:05 , fugee ohu wrote: > > > > On Thursday, February 1, 2018 at 8:54:56 AM UTC-5, Colin Law wrote: > On 1 February 2018 at 13:49, fugee ohu > wrote: > > > On Thursday, February 1, 2018 at 3:51:37 AM UTC-5, Colin Law wrote: > On

Re: [Rails] find_or_create_by rolls back

2018-02-01 Thread Hassan Schroeder
On Wed, Jan 31, 2018 at 11:30 PM, fugee ohu wrote: > I'm having find_or_create_by roll back on me in the console directly from > the model I'm not providing an id, the mysql id column is autoincrement > Model.find_or_create_by(person_id: 1, picture_id:37) Aside from what

Re: [Rails] find_or_create_by rolls back

2018-02-01 Thread fugee ohu
On Thursday, February 1, 2018 at 11:16:29 AM UTC-5, Hassan Schroeder wrote: > > On Wed, Jan 31, 2018 at 11:30 PM, fugee ohu > wrote: > > I'm having find_or_create_by roll back on me in the console directly > from > > the model I'm not providing an id, the mysql id column

Re: [Rails] find_or_create_by rolls back

2018-02-01 Thread fugee ohu
On Thursday, February 1, 2018 at 10:53:43 AM UTC-5, Rob Biedenharn wrote: > > > On 2018-Feb-1, at 09:05 , fugee ohu > wrote: > > > > On Thursday, February 1, 2018 at 8:54:56 AM UTC-5, Colin Law wrote: >> >> On 1 February 2018 at 13:49, fugee ohu wrote:

Re: [Rails] find_or_create_by rolls back

2018-02-01 Thread Colin Law
On 1 February 2018 at 07:30, fugee ohu wrote: > I'm having find_or_create_by roll back on me in the console directly from > the model I'm not providing an id, the mysql id column is autoincrement > Model.find_or_create_by(person_id: 1, picture_id:37) > What happens if you