Add setting to set logo URL (#410)

This commit is contained in:
Riccardo Graziosi
2024-09-16 18:48:18 +02:00
committed by GitHub
parent 5780d8494e
commit 63b3b4050a
16 changed files with 156 additions and 33 deletions

View File

@@ -0,0 +1,6 @@
class AddLogoLinksToToTenantSettings < ActiveRecord::Migration[6.1]
def change
add_column :tenant_settings, :logo_links_to, :integer, default: 0, null: false
add_column :tenant_settings, :logo_custom_url, :string
end
end

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2024_09_08_121603) do
ActiveRecord::Schema.define(version: 2024_09_16_140807) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -183,6 +183,8 @@ ActiveRecord::Schema.define(version: 2024_09_08_121603) do
t.integer "email_registration_policy", default: 0, null: false
t.string "allowed_email_domains"
t.boolean "use_browser_locale", default: false, null: false
t.integer "logo_links_to", default: 0, null: false
t.string "logo_custom_url"
t.index ["tenant_id"], name: "index_tenant_settings_on_tenant_id"
end