debian-mirror-gitlab/db/migrate/20211011140932_create_namespaces_sync_events.rb

10 lines
272 B
Ruby
Raw Normal View History

2022-01-26 12:08:38 +05:30
# 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