]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/migrate.rb
Add support for per-user limits on the rate changes can be made
[rails.git] / config / initializers / migrate.rb
index 0667e3346b01d03a5b15d3af5c5bce09722125b7..43dd446a3fdf4e3b485681a3f77a4c3d72b2c4a5 100644 (file)
@@ -51,6 +51,10 @@ if defined?(ActiveRecord::ConnectionAdapters::AbstractAdapter)
           execute "DROP TYPE #{enumeration_name}"
         end
 
           execute "DROP TYPE #{enumeration_name}"
         end
 
+        def add_enumeration_value(enumeration_name, value)
+          execute "ALTER TYPE #{enumeration_name} ADD VALUE '#{value}'"
+        end
+
         def rename_enumeration(old_name, new_name)
           old_name = quote_table_name(old_name)
           new_name = quote_table_name(new_name)
         def rename_enumeration(old_name, new_name)
           old_name = quote_table_name(old_name)
           new_name = quote_table_name(new_name)