limits username length to 60

This commit is contained in:
kikito
2015-09-09 16:14:19 +02:00
parent a1ede8f9b6
commit 4be475990c
2 changed files with 2 additions and 2 deletions

View File

@@ -1,5 +1,5 @@
class SetUsernameLimit < ActiveRecord::Migration
def change
change_column :users, :username, :string, limit: 200
change_column :users, :username, :string, limit: 60
end
end

View File

@@ -224,7 +224,7 @@ ActiveRecord::Schema.define(version: 20150909135032) do
t.integer "official_level", default: 0
t.datetime "hidden_at"
t.string "sms_confirmation_code"
t.string "username", limit: 200
t.string "username", limit: 60
t.string "document_number"
t.string "document_type"
t.datetime "residence_verified_at"