method
remove_references
rails latest stable - Class:
ActiveRecord::ConnectionAdapters::Table
remove_references(*args)public
Removes a reference. Optionally removes a type column. remove_references and remove_belongs_to are acceptable.
Examples
t.remove_references(:goat) t.remove_references(:goat, :polymorphic => true) t.remove_belongs_to(:goat)