Updated

db/migrate / 20190331160833_add_trending_ip_config_to_rate_limit.rb

B
8 lines of codes
1 methods
4.6 complexity/method
1 churn
4.6 complexity
33 duplications
class AddTrendingIpConfigToRateLimit < ActiveRecord::Migration
  1. AddTrendingIpConfigToRateLimit has no descriptive comment
def change
  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