class CreateRateLimits < ActiveRecord::Migration - CreateRateLimits has no descriptive comment
def change - CreateRateLimits#change has approx 8 statements
create_table :rate_limits do |t| - CreateRateLimits#change has the variable name 't'
t.integer :burst_rate, null: false, default: 1 -
t.integer :burst_period, null: false, default: 60 -
t.integer :sustained_rate, null: false, default: 5 -
t.integer :sustained_period, null: false, default: 300 -
t.string :domain_whitelist, null: false, limit: 10000, default: "" -
t.string :ip_whitelist, null: false, limit: 10000, default: "" -
t.timestamps null: false -
end
end
end