debian-mirror-gitlab/db/migrate/20230220163141_create_catalog_resources_table.rb
2023-05-27 22:25:52 +05:30

12 lines
323 B
Ruby

# 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