debian-mirror-gitlab/db/migrate/20210812171704_create_project_ci_feature_usages.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
506 B
Ruby
Raw Normal View History

2021-10-27 15:23:28 +05:30
# frozen_string_literal: true
class CreateProjectCiFeatureUsages < ActiveRecord::Migration[6.1]
def change
create_table :project_ci_feature_usages do |t|
t.references :project, index: false, foreign_key: { on_delete: :cascade }, null: false
t.integer :feature, null: false, limit: 2
t.boolean :default_branch, default: false, null: false
t.index [:project_id, :feature, :default_branch], unique: true, name: 'index_project_ci_feature_usages_unique_columns'
end
end
end