debian-mirror-gitlab/db/migrate/20201118093135_create_namespace_onboarding_actions.rb
2021-02-22 17:27:13 +05:30

23 lines
586 B
Ruby

# frozen_string_literal: true
class CreateNamespaceOnboardingActions < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
create_table :namespace_onboarding_actions do |t|
t.references :namespace, index: true, null: false, foreign_key: { on_delete: :cascade }
t.datetime_with_timezone :created_at, null: false
t.integer :action, limit: 2, null: false
end
end
end
def down
with_lock_retries do
drop_table :namespace_onboarding_actions
end
end
end