Updated

db/migrate / 20150701165424_create_notes.rb

A
12 lines of codes
1 methods
6.7 complexity/method
1 churn
6.68 complexity
16 duplications
class CreateNotes < ActiveRecord::Migration
  1. CreateNotes has no descriptive comment
def change
  1. CreateNotes#change has approx 6 statements
create_table :notes do |t|
  1. Similar code found in 2 nodes Locations: 0 1
  2. CreateNotes#change has the variable name 't'
t.references :petition t.text :details t.timestamps null: false end add_index :notes, :petition_id, unique: true add_foreign_key :notes, :petitions, on_delete: :cascade end end