Commit ed071fe0 authored by Alex Buijs's avatar Alex Buijs

Implement feedback fixes

parent 8bb5373a
...@@ -6,28 +6,9 @@ ...@@ -6,28 +6,9 @@
class AddRoleToUsers < ActiveRecord::Migration[5.2] class AddRoleToUsers < ActiveRecord::Migration[5.2]
include Gitlab::Database::MigrationHelpers include Gitlab::Database::MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME = false DOWNTIME = false
# When a migration requires downtime you **must** uncomment the following
# constant and define a short and easy to understand explanation as to why the
# migration requires downtime.
# DOWNTIME_REASON = ''
# When using the methods "add_concurrent_index", "remove_concurrent_index" or
# "add_column_with_default" you must disable the use of transactions
# as these methods can not run in an existing transaction.
# When using "add_concurrent_index" or "remove_concurrent_index" methods make sure
# that either of them is the _only_ method called in the migration,
# any other changes should go in a separate migration.
# This ensures that upon failure _only_ the index creation or removing fails
# and can be retried or reverted easily.
#
# To disable transactions uncomment the following line and remove these
# comments:
# disable_ddl_transaction!
def change def change
add_column :users, :role, :integer add_column :users, :role, :smallint
end end
end end
...@@ -3722,7 +3722,7 @@ ActiveRecord::Schema.define(version: 2019_10_16_072826) do ...@@ -3722,7 +3722,7 @@ ActiveRecord::Schema.define(version: 2019_10_16_072826) do
t.string "first_name", limit: 255 t.string "first_name", limit: 255
t.string "last_name", limit: 255 t.string "last_name", limit: 255
t.string "static_object_token", limit: 255 t.string "static_object_token", limit: 255
t.integer "role" t.integer "role", limit: 2
t.index "lower((name)::text)", name: "index_on_users_name_lower" t.index "lower((name)::text)", name: "index_on_users_name_lower"
t.index ["accepted_term_id"], name: "index_users_on_accepted_term_id" t.index ["accepted_term_id"], name: "index_users_on_accepted_term_id"
t.index ["admin"], name: "index_users_on_admin" t.index ["admin"], name: "index_users_on_admin"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment