diff --git a/db/migrate/20211228170116_add_display_name_to_users.rb b/db/migrate/20211228170116_add_display_name_to_users.rb new file mode 100644 index 0000000..4c45262 --- /dev/null +++ b/db/migrate/20211228170116_add_display_name_to_users.rb @@ -0,0 +1,5 @@ +class AddDisplayNameToUsers < ActiveRecord::Migration[7.0] + def change + add_column :users, :display_name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 88694be..3ae24af 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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