cbf2d27b6b
Fixes #297
6 lines
215 B
Ruby
6 lines
215 B
Ruby
class UpdateUserInviteForeignKey < ActiveRecord::Migration[6.0]
|
|
def change
|
|
remove_foreign_key :users, column: :inviter_id
|
|
add_foreign_key :users, :users, column: :inviter_id, on_delete: :nullify
|
|
end
|
|
end
|