class ActiveRecord::ConnectionAdapters::Table
def remove_references(*args, **options)
t.remove_belongs_to(:supplier, polymorphic: true)
t.remove_references(:user)
Removes a reference. Optionally removes a +type+ column.
def remove_references(*args, **options) raise_on_if_exist_options(options) args.each do |ref_name| @base.remove_reference(name, ref_name, **options) end end