Chatwoot/db/migrate/20191014051743_add_invited_by_to_user.rb
2019-11-27 12:42:00 +05:30

5 lines
150 B
Ruby

class AddInvitedByToUser < ActiveRecord::Migration[6.0]
def change
add_reference(:users, :inviter, foreign_key: { to_table: :users })
end
end