diff --git a/db/migrate/20220603140943_add_whatsapp_phone_to_enterprises.rb b/db/migrate/20220603140943_add_whatsapp_phone_to_enterprises.rb new file mode 100644 index 0000000000..e830ca4d5d --- /dev/null +++ b/db/migrate/20220603140943_add_whatsapp_phone_to_enterprises.rb @@ -0,0 +1,7 @@ +# frozen_string_literal: true + +class AddWhatsappPhoneToEnterprises < ActiveRecord::Migration[6.1] + def change + add_column :enterprises, :whatsapp_phone, :string, limit: 255 + end +end diff --git a/db/schema.rb b/db/schema.rb index acee8ae142..9494745876 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -241,6 +241,7 @@ ActiveRecord::Schema.define(version: 2022_06_21_230907) do t.integer "business_address_id" t.boolean "show_customer_names_to_suppliers", default: false, null: false t.string "visible", limit: 255, default: "public", null: false + t.string "whatsapp_phone", limit: 255 t.index ["address_id"], name: "index_enterprises_on_address_id" t.index ["is_primary_producer", "sells"], name: "index_enterprises_on_is_primary_producer_and_sells" t.index ["name"], name: "index_enterprises_on_name", unique: true