Updated

db/migrate / 20150621200307_add_foreign_keys.rb

A
10 lines of codes
1 methods
6.0 complexity/method
1 churn
6.0 complexity
0 duplications
class AddForeignKeys < ActiveRecord::Migration
  1. AddForeignKeys has no descriptive comment
def change
  1. AddForeignKeys#change has approx 6 statements
add_foreign_key :constituency_petition_journals, :petitions, on_delete: :cascade add_foreign_key :debate_outcomes, :petitions, on_delete: :cascade add_foreign_key :petitions, :signatures, column: :creator_signature_id, on_delete: :cascade add_foreign_key :signatures, :petitions, on_delete: :cascade add_foreign_key :sponsors, :petitions, on_delete: :cascade add_foreign_key :sponsors, :signatures, on_delete: :cascade end end