Add whatsapp_phone column to enterprises

This commit is contained in:
Arthur Vieira
2022-06-03 11:15:27 -03:00
parent 96df2cb307
commit a2bc61475b
2 changed files with 8 additions and 0 deletions

View File

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

View File

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