Commit 5cdf60b8 authored by Andreas Brandl's avatar Andreas Brandl

Ignore Migration/AddReference for existing migration.

parent 90a8fa72
......@@ -17,7 +17,7 @@ class AddPlanIdToNamespaces < ActiveRecord::Migration
end
def up
add_reference :namespaces, :plan
add_reference :namespaces, :plan # rubocop:disable Migration/AddReference
add_concurrent_foreign_key :namespaces, :plans, column: :plan_id, on_delete: :nullify
add_concurrent_index :namespaces, :plan_id
......
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