Gift support changes
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
class AddRecipientDestinationToDeliveryDestination < ActiveRecord::Migration
|
||||
def change
|
||||
add_column :delivery_destinations, :recipient_name, :string
|
||||
add_column :delivery_destinations, :recipient_address, :string
|
||||
add_column :delivery_destinations, :recipient_place, :string
|
||||
add_column :delivery_destinations, :recipient_postal_code, :string
|
||||
add_column :delivery_destinations, :recipient_phone, :string
|
||||
add_column :delivery_destinations, :recipient_email, :string
|
||||
end
|
||||
end
|
||||
@@ -11,7 +11,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema.define(version: 20160111105607) do
|
||||
ActiveRecord::Schema.define(version: 20160112091903) do
|
||||
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
@@ -22,18 +22,17 @@ ActiveRecord::Schema.define(version: 20160111105607) do
|
||||
|
||||
create_table "carts", force: :cascade do |t|
|
||||
t.integer "user_id"
|
||||
t.boolean "ordered", default: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.boolean "ordered", default: false
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "anonymous_id_string"
|
||||
t.integer "delivery_destination_id"
|
||||
t.boolean "confirmed", default: false
|
||||
t.boolean "packed", default: false
|
||||
t.boolean "canceled_on_check", default: false
|
||||
t.boolean "canceled_on_delivery", default: false
|
||||
t.boolean "delivered", default: false
|
||||
t.boolean "confirmed", default: false
|
||||
t.boolean "packed", default: false
|
||||
t.boolean "canceled_on_check", default: false
|
||||
t.boolean "canceled_on_delivery", default: false
|
||||
t.boolean "delivered", default: false
|
||||
t.text "internal_note"
|
||||
t.integer "recipient_destination_id"
|
||||
end
|
||||
|
||||
create_table "categories", force: :cascade do |t|
|
||||
@@ -70,6 +69,12 @@ ActiveRecord::Schema.define(version: 20160111105607) do
|
||||
t.boolean "instant_delivery", default: false
|
||||
t.string "payment_method"
|
||||
t.boolean "gift", default: false
|
||||
t.string "recipient_name"
|
||||
t.string "recipient_address"
|
||||
t.string "recipient_place"
|
||||
t.string "recipient_postal_code"
|
||||
t.string "recipient_phone"
|
||||
t.string "recipient_email"
|
||||
end
|
||||
|
||||
create_table "delivery_time_estimations", force: :cascade do |t|
|
||||
|
||||
Reference in New Issue
Block a user