debian-mirror-gitlab/db/migrate/20190722104947_add_static_object_token_to_users.rb

23 lines
620 B
Ruby
Raw Normal View History

2019-12-04 20:38:33 +05:30
# 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!
2020-05-24 23:13:21 +05:30
# rubocop:disable Migration/AddColumnsToWideTables
# rubocop:disable Migration/PreventStrings
2019-12-04 20:38:33 +05:30
def up
2020-05-24 23:13:21 +05:30
add_column :users, :static_object_token, :string, limit: 255
2019-12-04 20:38:33 +05:30
end
2020-05-24 23:13:21 +05:30
# rubocop:enable Migration/PreventStrings
# rubocop:enable Migration/AddColumnsToWideTables
2019-12-04 20:38:33 +05:30
def down
remove_column :users, :static_object_token
end
end