forked from spree/spree
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement a state lock version to prevent race conditions in checkout…
… controller. refs spree#4190
- Loading branch information
Jeff Dutil
authored and
Jeff Dutil
committed
Oct 21, 2014
1 parent
9da5d09
commit 0fe6c9d
Showing
5 changed files
with
24 additions
and
6 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
core/db/migrate/20141021194502_add_state_lock_version_to_order.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddStateLockVersionToOrder < ActiveRecord::Migration | ||
def change | ||
add_column :spree_orders, :state_lock_version, :integer, default: 0, null: false | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters