debian-mirror-gitlab/db/migrate/20220519013213_create_cluster_enabled_grants.rb

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

13 lines
364 B
Ruby
Raw Normal View History

2022-07-23 23:45:48 +05:30
# 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