diff options
author | David Gay <eapoems@riseup.net> | 2023-10-31 01:08:26 -0400 |
---|---|---|
committer | David Gay <eapoems@riseup.net> | 2023-10-31 01:08:26 -0400 |
commit | be7a98c94265b9b82024dd626f28dae4c572c0cd (patch) | |
tree | fad51cf41c0bbf78ebaf2904f5d944290bed6f18 /db | |
parent | c68d91231c2be48dd4429df4f5fbaee37fbd954c (diff) |
Add name to User model
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20231031050050_add_name_to_users.rb | 5 | ||||
-rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
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 |