Add name to customers

This commit is contained in:
Bing Xie
2016-07-13 11:36:22 +10:00
parent b08a642377
commit ca0c3a028d
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddNameToCustomer < ActiveRecord::Migration
def change
add_column :customers, :name, :string
end
end

View File

@@ -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"