From ca0c3a028d08a8fea55b76c79665bd9726c6bb5f Mon Sep 17 00:00:00 2001 From: Bing Xie Date: Wed, 13 Jul 2016 11:36:22 +1000 Subject: [PATCH] Add name to customers --- db/migrate/20160713013358_add_name_to_customer.rb | 5 +++++ db/schema.rb | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160713013358_add_name_to_customer.rb diff --git a/db/migrate/20160713013358_add_name_to_customer.rb b/db/migrate/20160713013358_add_name_to_customer.rb new file mode 100644 index 0000000000..832816657e --- /dev/null +++ b/db/migrate/20160713013358_add_name_to_customer.rb @@ -0,0 +1,5 @@ +class AddNameToCustomer < ActiveRecord::Migration + def change + add_column :customers, :name, :string + end +end diff --git a/db/schema.rb b/db/schema.rb index a5bd420a1a..9a825e299c 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended to check this file into your version control system. -ActiveRecord::Schema.define(:version => 20160713003535) do +ActiveRecord::Schema.define(:version => 20160713013358) do create_table "account_invoices", :force => true do |t| t.integer "user_id", :null => false @@ -87,6 +87,7 @@ ActiveRecord::Schema.define(:version => 20160713003535) do t.datetime "updated_at", :null => false t.integer "bill_address_id" t.integer "ship_address_id" + t.string "name" end add_index "customers", ["bill_address_id"], :name => "index_customers_on_bill_address_id"