]> git.openstreetmap.org Git - rails.git/blobdiff - lib/tasks/update_functions.rake
Add support for per-user limits on the rate changes can be made
[rails.git] / lib / tasks / update_functions.rake
diff --git a/lib/tasks/update_functions.rake b/lib/tasks/update_functions.rake
new file mode 100644 (file)
index 0000000..605d3c9
--- /dev/null
@@ -0,0 +1,6 @@
+namespace :db do
+  desc "Update database function definitions"
+  task :update_functions => :environment do
+    ActiveRecord::Base.connection.execute DatabaseFunctions::API_RATE_LIMIT
+  end
+end