Add setting to use browser locale if available (#404)

This commit is contained in:
Riccardo Graziosi
2024-09-08 14:40:48 +02:00
committed by GitHub
parent 5decb702f2
commit 2e07f7b00d
10 changed files with 41 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
class AddUseBrowserLocaleToTenantSettings < ActiveRecord::Migration[6.1]
def change
add_column :tenant_settings, :use_browser_locale, :boolean, default: false, null: 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.define(version: 2024_09_02_151945) do
ActiveRecord::Schema.define(version: 2024_09_08_121603) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -182,6 +182,7 @@ ActiveRecord::Schema.define(version: 2024_09_02_151945) do
t.boolean "is_private", default: false, null: false
t.integer "email_registration_policy", default: 0, null: false
t.string "allowed_email_domains"
t.boolean "use_browser_locale", default: false, null: false
t.index ["tenant_id"], name: "index_tenant_settings_on_tenant_id"
end