From be7a98c94265b9b82024dd626f28dae4c572c0cd Mon Sep 17 00:00:00 2001 From: David Gay Date: Tue, 31 Oct 2023 01:08:26 -0400 Subject: Add name to User model --- db/migrate/20231031050050_add_name_to_users.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20231031050050_add_name_to_users.rb (limited to 'db') diff --git a/db/migrate/20231031050050_add_name_to_users.rb b/db/migrate/20231031050050_add_name_to_users.rb new file mode 100644 index 0000000..75a2fd3 --- /dev/null +++ b/db/migrate/20231031050050_add_name_to_users.rb @@ -0,0 +1,5 @@ +class AddNameToUsers < ActiveRecord::Migration[7.1] + def change + add_column :users, :name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index 2acafc3..bed04ff 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[7.1].define(version: 2023_10_30_051000) do +ActiveRecord::Schema[7.1].define(version: 2023_10_31_050050) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -76,6 +76,7 @@ ActiveRecord::Schema[7.1].define(version: 2023_10_30_051000) do t.datetime "remember_created_at" t.datetime "created_at", null: false t.datetime "updated_at", null: false + t.string "name" t.index ["email"], name: "index_users_on_email", unique: true end -- cgit v1.2.3