gitlab-org--gitlab-foss/db/post_migrate/20220916054103_remove_experience_level_column.rb

13 lines
288 B
Ruby

# frozen_string_literal: true
class RemoveExperienceLevelColumn < Gitlab::Database::Migration[2.0]
enable_lock_retries!
def up
remove_column :user_preferences, :experience_level
end
def down
add_column :user_preferences, :experience_level, :integer, limit: 2
end
end