debian-mirror-gitlab/db/migrate/20200304085423_add_user_type.rb

20 lines
395 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
class AddUserType < ActiveRecord::Migration[6.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
with_lock_retries do
2020-04-22 19:07:51 +05:30
add_column :users, :user_type, :integer, limit: 2 # rubocop:disable Migration/AddColumnsToWideTables
2020-04-08 14:13:33 +05:30
end
end
def down
with_lock_retries do
remove_column :users, :user_type
end
end
end