gitlab-org--gitlab-foss/db/migrate/20211011140932_create_namespaces_sync_events.rb

9 lines
272 B
Ruby

# frozen_string_literal: true
class CreateNamespacesSyncEvents < Gitlab::Database::Migration[1.0]
def change
create_table :namespaces_sync_events do |t|
t.references :namespace, null: false, index: true, foreign_key: { on_delete: :cascade }
end
end
end