Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20230220163141_create_catalog_resources_table.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9a60a68415ab8822946abb2c85ce956a6e65eb90 (plain)
1
2
3
4
5
6
7
8
9
10
11
# frozen_string_literal: true

class CreateCatalogResourcesTable < Gitlab::Database::Migration[2.1]
  def change
    create_table :catalog_resources do |t|
      t.references :project, index: true, null: false, foreign_key: { on_delete: :cascade }

      t.datetime_with_timezone :created_at, null: false
    end
  end
end