debian-mirror-gitlab/db/migrate/20211011141239_create_projects_sync_events.rb
2022-01-26 12:08:38 +05:30

9 lines
266 B
Ruby

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