Commit 1a21bb78 authored by Gabriel Mazetto's avatar Gabriel Mazetto Committed by Robert Speicher

Fix migration for MySQL compatibility

parent a2352c02
...@@ -11,7 +11,7 @@ class UpdateGeoNodesSystemHooks < ActiveRecord::Migration ...@@ -11,7 +11,7 @@ class UpdateGeoNodesSystemHooks < ActiveRecord::Migration
tag_push_events: false, tag_push_events: false,
repository_update_events: true repository_update_events: true
} }
SystemHook.joins('INNER JOIN "geo_nodes" ON "geo_nodes".system_hook_id = "web_hooks".id').update_all(attrs) SystemHook.joins('INNER JOIN geo_nodes ON geo_nodes.system_hook_id = web_hooks.id').update_all(attrs)
end end
def down def down
...@@ -20,6 +20,6 @@ class UpdateGeoNodesSystemHooks < ActiveRecord::Migration ...@@ -20,6 +20,6 @@ class UpdateGeoNodesSystemHooks < ActiveRecord::Migration
tag_push_events: true, tag_push_events: true,
repository_update_events: false repository_update_events: false
} }
SystemHook.joins('INNER JOIN "geo_nodes" ON "geo_nodes".system_hook_id = "web_hooks".id').update_all(attrs) SystemHook.joins('INNER JOIN geo_nodes ON geo_nodes.system_hook_id = web_hooks.id').update_all(attrs)
end end
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment