ajout de User#display_name
This commit is contained in:
parent
5deba5ed61
commit
2fd0266030
5
db/migrate/20211228170116_add_display_name_to_users.rb
Normal file
5
db/migrate/20211228170116_add_display_name_to_users.rb
Normal 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
3
db/schema.rb
generated
|
@ -10,7 +10,7 @@
|
||||||
#
|
#
|
||||||
# It's strongly recommended that you check this file into your version control system.
|
# 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|
|
create_table "api_credentials", force: :cascade do |t|
|
||||||
t.string "token"
|
t.string "token"
|
||||||
|
@ -45,6 +45,7 @@ ActiveRecord::Schema.define(version: 2021_12_26_105150) do
|
||||||
t.string "last_sign_in_ip"
|
t.string "last_sign_in_ip"
|
||||||
t.datetime "created_at", precision: 6, null: false
|
t.datetime "created_at", precision: 6, null: false
|
||||||
t.datetime "updated_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 ["email"], name: "index_users_on_email", unique: true
|
||||||
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue