Updated

db/migrate / 20150630105949_restructure_indexes.rb

A
12 lines of codes
1 methods
6.0 complexity/method
2 churn
6.0 complexity
0 duplications
class RestructureIndexes < ActiveRecord::Migration
  1. RestructureIndexes has no descriptive comment
def change
  1. RestructureIndexes#change has approx 6 statements
remove_index :signatures, [:petition_id, :state] remove_index :signatures, [:state] remove_index :petitions, [:state, :created_at] add_index :petitions, [:created_at, :state] remove_index :petitions, [:state, :signature_count] add_index :petitions, [:signature_count, :state] end end