Rails Change Reference

class RemoveClientFromUser < ActiveRecord::Migration
  def change
    remove_reference :users, :client, index: true, foreign_key: true
    add_reference :users, :model_name, index: true, foreign_key: true
  end
end
Lioruby