diff --git a/db/migrate/20220629080906_add_note_to_orders.rb b/db/migrate/20220629080906_add_note_to_orders.rb new file mode 100644 index 0000000000..3cb5415cf4 --- /dev/null +++ b/db/migrate/20220629080906_add_note_to_orders.rb @@ -0,0 +1,5 @@ +class AddNoteToOrders < ActiveRecord::Migration[6.1] + def change + add_column :spree_orders, :note, :string, null: false, default: "" + end +end diff --git a/db/schema.rb b/db/schema.rb index acee8ae142..7ce19f7723 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2022_06_21_230907) do +ActiveRecord::Schema.define(version: 2022_06_29_080906) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -596,6 +596,7 @@ ActiveRecord::Schema.define(version: 2022_06_21_230907) do t.integer "created_by_id" t.decimal "included_tax_total", precision: 10, scale: 2, default: "0.0", null: false t.decimal "additional_tax_total", precision: 10, scale: 2, default: "0.0", null: false + t.string "note", default: "", null: false t.index ["completed_at", "user_id", "created_by_id", "created_at"], name: "spree_orders_completed_at_user_id_created_by_id_created_at_idx" t.index ["customer_id"], name: "index_spree_orders_on_customer_id" t.index ["distributor_id"], name: "index_spree_orders_on_distributor_id"