Add support for per-user limits on the size of changes that can be made

This commit is contained in:
Tom Hughes 2024-06-18 20:35:09 +01:00
parent 80ccf1d4c2
commit f61ac2586f
5 changed files with 133 additions and 0 deletions

View file

@ -2,5 +2,6 @@ namespace :db do
desc "Update database function definitions"
task :update_functions => :environment do
ActiveRecord::Base.connection.execute DatabaseFunctions::API_RATE_LIMIT
ActiveRecord::Base.connection.execute DatabaseFunctions::API_SIZE_LIMIT
end
end