debian-mirror-gitlab/db/migrate/20220707181910_create_member_roles.rb

16 lines
450 B
Ruby
Raw Normal View History

2022-08-27 11:52:29 +05:30
# frozen_string_literal: true
class CreateMemberRoles < Gitlab::Database::Migration[2.0]
def change
create_table :member_roles do |t|
t.references :namespace,
index: true,
null: false,
foreign_key: { on_delete: :cascade }
t.timestamps_with_timezone null: false
t.integer :base_access_level, null: false
t.boolean :download_code, default: false
end
end
end