Skip to content

Commit

Permalink
fix: workaround cockroachdb issue w/ concurrent check to same table
Browse files Browse the repository at this point in the history
  • Loading branch information
donbowman committed Sep 1, 2019
1 parent 30e3eff commit 6daaae3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions db/migrate/20120101000001_create_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,10 @@ def up
add_index :users, [:out_of_office_replacement_id]
add_index :users, [:source]
add_index :users, [:created_by_id]
add_foreign_key :users, :users, column: :created_by_id
add_foreign_key :users, :users, column: :updated_by_id
add_foreign_key :users, :users, column: :out_of_office_replacement_id
# https://github.com/cockroachdb/cockroach/issues/40399
# add_foreign_key :users, :users, column: :created_by_id
# add_foreign_key :users, :users, column: :updated_by_id
# add_foreign_key :users, :users, column: :out_of_office_replacement_id

create_table :signatures do |t|
t.string :name, limit: 100, null: false
Expand Down

0 comments on commit 6daaae3

Please sign in to comment.