]> git.openstreetmap.org Git - rails.git/blob - db/migrate/20231101222146_api_rate_limit.rb
Remove Nominatim prefixes mention in contributors guide
[rails.git] / db / migrate / 20231101222146_api_rate_limit.rb
1 class ApiRateLimit < ActiveRecord::Migration[7.1]
2   def up
3     safety_assured do
4       execute DatabaseFunctions::API_RATE_LIMIT
5     end
6   end
7
8   def down
9     safety_assured do
10       execute "DROP FUNCTION api_rate_limit(bigint)"
11     end
12   end
13 end