aboutsummaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorRaghuram Subramani <raghus2247@gmail.com>2025-10-30 13:30:58 -0400
committerRaghuram Subramani <raghus2247@gmail.com>2025-10-30 13:31:59 -0400
commita1824182f07c60c16611977c3a9ff6db2712fdd9 (patch)
tree2ed5630d7f2772ee1c56d7e170f01c06c9b95782 /db
parent91ebb2fa01de3f63a13c0e33a6a00d6523faa009 (diff)
clients: add address
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20251030173042_add_address_to_clients.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20251030173042_add_address_to_clients.rb b/db/migrate/20251030173042_add_address_to_clients.rb
new file mode 100644
index 0000000..f2a5b7d
--- /dev/null
+++ b/db/migrate/20251030173042_add_address_to_clients.rb
@@ -0,0 +1,5 @@
+class AddAddressToClients < ActiveRecord::Migration[8.1]
+ def change
+ add_column :clients, :address, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 3277c4e..34547e1 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -10,11 +10,12 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema[8.1].define(version: 2025_10_30_151152) do
+ActiveRecord::Schema[8.1].define(version: 2025_10_30_173042) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
create_table "clients", force: :cascade do |t|
+ t.string "address"
t.datetime "created_at", null: false
t.string "first_name", null: false
t.string "last_name", null: false