debian-mirror-gitlab/db/migrate/20190722104947_add_static_object_token_to_users.rb
2020-05-24 23:13:21 +05:30

23 lines
620 B
Ruby

# frozen_string_literal: true
# See http://doc.gitlab.com/ce/development/migration_style_guide.html
# for more information on how to write migrations for GitLab.
class AddStaticObjectTokenToUsers < ActiveRecord::Migration[5.2]
DOWNTIME = false
disable_ddl_transaction!
# rubocop:disable Migration/AddColumnsToWideTables
# rubocop:disable Migration/PreventStrings
def up
add_column :users, :static_object_token, :string, limit: 255
end
# rubocop:enable Migration/PreventStrings
# rubocop:enable Migration/AddColumnsToWideTables
def down
remove_column :users, :static_object_token
end
end