Add language settings for users, and translate titles to French
All checks were successful
CI / scan_ruby (push) Successful in 16s
CI / scan_js (push) Successful in 12s
CI / lint (push) Successful in 13s
CI / test (push) Successful in 36s

This commit is contained in:
sto
2025-03-27 12:55:12 +01:00
parent 497768610d
commit 8b0b1c6745
14 changed files with 128 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
class AddLangToUser < ActiveRecord::Migration[8.0]
def change
add_column :users, :lang, :string, default: 'en'
end
end

3
db/schema.rb generated
View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[8.0].define(version: 2025_03_26_162920) do
ActiveRecord::Schema[8.0].define(version: 2025_03_27_111835) do
create_table "active_storage_attachments", force: :cascade do |t|
t.string "name", null: false
t.string "record_type", null: false
@@ -111,6 +111,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_03_26_162920) do
t.datetime "updated_at", null: false
t.string "username"
t.boolean "admin", default: false, null: false
t.string "lang", default: "en"
t.index ["email_address"], name: "index_users_on_email_address", unique: true
end