diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-30 11:16:08 -0400 |
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2025-10-30 11:16:08 -0400 |
| commit | e3cb5fea5e85c1d0d2526fa39042da5e8d9ba4d3 (patch) | |
| tree | 4a0cfe3d196739a3b732c95cef46d9c37ae4a14c /db | |
| parent | 94a44a40aacacabb4737d3dfab129845b0777ba0 (diff) | |
clients: add notes field
Diffstat (limited to 'db')
| -rw-r--r-- | db/migrate/20251030151152_add_notes_to_clients.rb | 5 | ||||
| -rw-r--r-- | db/schema.rb | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20251030151152_add_notes_to_clients.rb b/db/migrate/20251030151152_add_notes_to_clients.rb new file mode 100644 index 0000000..6f47681 --- /dev/null +++ b/db/migrate/20251030151152_add_notes_to_clients.rb @@ -0,0 +1,5 @@ +class AddNotesToClients < ActiveRecord::Migration[8.1] + def change + add_column :clients, :notes, :string, null: false, default: '' + end +end diff --git a/db/schema.rb b/db/schema.rb index a3a5d8b..3277c4e 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[8.1].define(version: 2025_10_30_125758) do +ActiveRecord::Schema[8.1].define(version: 2025_10_30_151152) do # These are extensions that must be enabled in order to support this database enable_extension "pg_catalog.plpgsql" @@ -19,6 +19,7 @@ ActiveRecord::Schema[8.1].define(version: 2025_10_30_125758) do t.string "first_name", null: false t.string "last_name", null: false t.string "mobile_number", null: false + t.string "notes", default: "", null: false t.datetime "updated_at", null: false t.uuid "uuid", default: -> { "gen_random_uuid()" }, null: false t.index ["first_name"], name: "index_clients_on_first_name" |
