mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-09-19 06:44:59 +09:00
Address race condition during "first run" account creation
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class AddSingletonConstraintToAccounts < ActiveRecord::Migration[8.2]
|
||||
def change
|
||||
add_column :accounts, :singleton_guard, :integer, default: 0, null: false
|
||||
add_index :accounts, :singleton_guard, unique: true
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user