rails migration delete reference code example Example: rails remove reference remove_reference :table_name, :model_name, index: true, foreign_key: true