Add hide_groups_tab to Enterprise model

This commit is contained in:
Jean-Baptiste Bellet
2023-04-25 17:20:57 +02:00
parent fed7c3da51
commit 38cc8a89d1
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddHideGroupsTabToEnterprises < ActiveRecord::Migration[7.0]
def change
add_column :enterprises, :hide_groups_tab, :boolean, default: false
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_04_24_141213) do
ActiveRecord::Schema[7.0].define(version: 2023_04_25_135232) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_stat_statements"
enable_extension "plpgsql"
@@ -226,6 +226,7 @@ ActiveRecord::Schema[7.0].define(version: 2023_04_24_141213) do
t.string "whatsapp_phone", limit: 255
t.boolean "hide_ofn_navigation", default: false, null: false
t.text "white_label_logo_link"
t.boolean "hide_groups_tab", default: false
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