Updated

db/migrate / 20171204122339_add_indexes_to_moderation_threshold_reached_at_and_moderation_lag.rb

A
13 lines of codes
2 methods
2.0 complexity/method
1 churn
4.0 complexity
0 duplications
class AddIndexesToModerationThresholdReachedAtAndModerationLag < ActiveRecord::Migration
  1. AddIndexesToModerationThresholdReachedAtAndModerationLag has no descriptive comment
disable_ddl_transaction! def up add_index :petitions, [:moderation_threshold_reached_at, :moderation_lag], algorithm: :concurrently, name: "index_petitions_on_mt_reached_at_and_moderation_lag" add_index :archived_petitions, [:moderation_threshold_reached_at, :moderation_lag], algorithm: :concurrently, name: "index_archived_petitions_on_mt_reached_at_and_moderation_lag" end def down remove_index :petitions, name: "index_petitions_on_mt_reached_at_and_moderation_lag" remove_index :archived_petitions, name: "index_archived_petitions_on_mt_reached_at_and_moderation_lag" end end