Updated

db/migrate / 20170818110849_change_rate_limit_columns.rb

B
8 lines of codes
1 methods
4.0 complexity/method
1 churn
4.0 complexity
18 duplications
class ChangeRateLimitColumns < ActiveRecord::Migration
  1. ChangeRateLimitColumns has no descriptive comment
def change
  1. Similar code found in 3 nodes Locations: 0 1 2
rename_column(:rate_limits, :domain_whitelist, :allowed_domains) rename_column(:rate_limits, :ip_whitelist, :allowed_ips) rename_column(:rate_limits, :domain_blacklist, :blocked_domains) rename_column(:rate_limits, :ip_blacklist, :blocked_ips) end end