ajout de User#display_name

This commit is contained in:
Jérémy Lecour 2022-01-22 12:41:22 +01:00 committed by Jérémy Lecour
parent 5deba5ed61
commit 2fd0266030
2 changed files with 7 additions and 1 deletions

View File

@ -0,0 +1,5 @@
class AddDisplayNameToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :display_name, :string
end
end

3
db/schema.rb generated
View File

@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2021_12_26_105150) do
ActiveRecord::Schema.define(version: 2021_12_28_170116) do
create_table "api_credentials", force: :cascade do |t|
t.string "token"
@ -45,6 +45,7 @@ ActiveRecord::Schema.define(version: 2021_12_26_105150) do
t.string "last_sign_in_ip"
t.datetime "created_at", precision: 6, null: false
t.datetime "updated_at", precision: 6, null: false
t.string "display_name"
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end