Updated

db/migrate / 20181211115757_create_petition_statistics.rb

A
11 lines of codes
1 methods
5.9 complexity/method
1 churn
5.89 complexity
0 duplications
class CreatePetitionStatistics < ActiveRecord::Migration
  1. CreatePetitionStatistics has no descriptive comment
def change create_table :petition_statistics do |t|
  1. CreatePetitionStatistics#change has the variable name 't'
t.belongs_to :petition, index: { unique: true }, foreign_key: true
  1. CreatePetitionStatistics#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3
t.timestamp :refreshed_at
  1. CreatePetitionStatistics#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3
t.integer :duplicate_emails
  1. CreatePetitionStatistics#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3
t.timestamps
  1. CreatePetitionStatistics#change refers to 't' more than self (maybe move it to another class?) Locations: 0 1 2 3
end end end