Updated

db/migrate / 20190415015616_drop_trending_ip_columns.rb

B
15 lines of codes
2 methods
4.3 complexity/method
2 churn
8.6 complexity
33 duplications
class DropTrendingIpColumns < ActiveRecord::Migration
  1. DropTrendingIpColumns has no descriptive comment
def up remove_column :rate_limits, :enable_logging_of_trending_ips remove_column :rate_limits, :threshold_for_logging_trending_ip remove_column :rate_limits, :threshold_for_notifying_trending_ip remove_column :rate_limits, :trending_ip_notification_url end def down
  1. Similar code found in 2 nodes Locations: 0 1
add_column :rate_limits, :enable_logging_of_trending_ips, :boolean, null: false, default: false add_column :rate_limits, :threshold_for_logging_trending_ip, :integer, null: false, default: 100 add_column :rate_limits, :threshold_for_notifying_trending_ip, :integer, null: false, default: 200 add_column :rate_limits, :trending_ip_notification_url, :string end end