debian-mirror-gitlab/db/migrate/20220519013213_create_cluster_enabled_grants.rb
2022-07-23 20:15:48 +02:00

12 lines
364 B
Ruby

# frozen_string_literal: true
class CreateClusterEnabledGrants < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def change
create_table :cluster_enabled_grants do |t|
t.references :namespace, index: { unique: true }, null: false, foreign_key: { on_delete: :cascade }
t.datetime_with_timezone :created_at, null: false
end
end
end