mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +00:00
7 lines
215 B
Ruby
7 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
|