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

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

class AddStateToCatalogResources < Gitlab::Database::Migration[2.1]
  DRAFT = 0

  def change
    add_column :catalog_resources, :state, :smallint, null: false, limit: 1, default: DRAFT
  end
end