rails remove foreign key
class RemoveForeignKeyConstraint < ActiveRecord::Migration[6.0]
def up
remove_foreign_key :child_table, :parent_table
end
def down
add_foreign_key :child_table, :parent_table
end
end
class RemoveForeignKeyConstraint < ActiveRecord::Migration[6.0]
def up
remove_foreign_key :child_table, :parent_table
end
def down
add_foreign_key :child_table, :parent_table
end
end