debian-mirror-gitlab/db/post_migrate/20220916054103_remove_experience_level_column.rb

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

14 lines
288 B
Ruby
Raw Normal View History

2022-11-25 23:54:43 +05:30
# 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