bus-detective/bus-detective

View on GitHub
db/migrate/20160309145407_add_cascading_deletes_to_associations.rb

Summary

Maintainability
A
0 mins
Test Coverage
class AddCascadingDeletesToAssociations < ActiveRecord::Migration
  def change
    remove_foreign_key :trips, :services
    add_foreign_key :trips, :services, on_delete: :cascade
  end
end