From 134e6957256c2331e73fbab9ea527cba040c684d Mon Sep 17 00:00:00 2001 From: "Ira W. Snyder" Date: Wed, 21 Nov 2007 21:20:41 -0800 Subject: [PATCH] Use a text field for the customers address This is probably a better decision than just using a string. I can break it into address pieces later, but that can wait. Signed-off-by: Ira W. Snyder --- app/views/customer/_form.rhtml | 2 +- db/development.sqlite3 | Bin 9216 -> 9216 bytes db/migrate/010_customers_text_address.rb | 9 +++++++++ db/schema.rb | 6 +++--- 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 db/migrate/010_customers_text_address.rb diff --git a/app/views/customer/_form.rhtml b/app/views/customer/_form.rhtml index df2a4b0..3107334 100644 --- a/app/views/customer/_form.rhtml +++ b/app/views/customer/_form.rhtml @@ -5,7 +5,7 @@ <%= text_field 'customer', 'name' %>


-<%= text_field 'customer', 'address' %>

+<%= text_area 'customer', 'address' %>


<%= text_field 'customer', 'email' %>

diff --git a/db/development.sqlite3 b/db/development.sqlite3 index 1c7c3258f3d8b1febf9ae970d5afd7461e968567..72eb9b0e1f0b41918244e9c5193e180349cf3ccd 100644 GIT binary patch delta 226 zcmZqhXz-XIEx3RI0@#5RGZ5=+)Va*g%f-ta#K6S#n}O*!^U{rl@0r*_8QB>WBPVa< zmKEgX3dl)JPR%RHOw>_ucI4%ne3x691*kW8au~NiTO<=$Wdv50E!^sxc-T0&q8XSs zF&$@&Wr&_w=*`tw&&nhqQN{0F0O8lp*|rB26_gY pr;24WPF^kgdh&i*KM9D#8JK`HClGT0F~|q3n*~{3FfWqf003aKGwA>T delta 147 zcmZqhXz-XIEjWh(0@#5RGZ1TS)Va*g%gGC5GBF1+Ft26~+F0nu%ofhX&Y&1Nc{R7} z 9) do +ActiveRecord::Schema.define(:version => 10) do create_table "coitems", :force => true do |t| t.column "customer_id", :integer @@ -13,10 +13,10 @@ ActiveRecord::Schema.define(:version => 9) do create_table "customers", :force => true do |t| t.column "name", :string - t.column "address", :string + t.column "address", :text, :limit => 255 t.column "email", :string t.column "phone", :string - t.column "debt", :decimal, :precision => 8, :scale => 2, :default => 0.0 + t.column "debt", :decimal, :default => 0.0 end create_table "rentables", :force => true do |t| -- 2.25.1