diff options
Diffstat (limited to 'db/migrate/20211011140932_create_namespaces_sync_events.rb')
-rw-r--r-- | db/migrate/20211011140932_create_namespaces_sync_events.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20211011140932_create_namespaces_sync_events.rb b/db/migrate/20211011140932_create_namespaces_sync_events.rb new file mode 100644 index 00000000000..06831423343 --- /dev/null +++ b/db/migrate/20211011140932_create_namespaces_sync_events.rb @@ -0,0 +1,9 @@ +# 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 |