Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't mess with column_defaults when optimistic locking is enabled #15771

Merged

Conversation

sgrif
Copy link
Contributor

@sgrif sgrif commented Jun 17, 2014

No description provided.

rafaelfranca added a commit that referenced this pull request Jun 17, 2014
…ults

Don't mess with `column_defaults` when optimistic locking is enabled
@rafaelfranca rafaelfranca merged commit 63b347d into rails:master Jun 17, 2014
@sgrif sgrif deleted the sg-stop-messing-with-column-defaults branch June 17, 2014 18:04
vipulnsward added a commit to vipulnsward/rails that referenced this pull request Apr 23, 2016
Make sure we handle explicitly passed nil's to lock_version as well.
An explicitly passed nil value is now converted to 0 on LockingType,
so that we don't end up with ActiveRecord::StaleObjectError in update record
optimistic locking

Fixes rails#24695
sgrif added a commit that referenced this pull request Apr 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants