mirror of
https://git.bsd.gay/fef/nyastodon.git
synced 2024-12-27 06:03:42 +01:00
96f905f409
* Add optimistic lock to avoid race conditions when handling votes * Force-reload polls when getting `ActiveRecord::StaleObjectError`
6 lines
155 B
Ruby
6 lines
155 B
Ruby
class AddLockVersionToPolls < ActiveRecord::Migration[5.2]
|
|
def change
|
|
add_column :polls, :lock_version, :integer, null: false, default: 0
|
|
end
|
|
end
|
|
|