Add preferences to user model

This commit is contained in:
Râu Cao
2023-04-04 12:27:49 +02:00
parent a33410eeb4
commit 23821f9e65
4 changed files with 61 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddPreferencesToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :preferences, :text
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_03_19_101128) do
ActiveRecord::Schema[7.0].define(version: 2023_04_03_135149) do
create_table "donations", force: :cascade do |t|
t.integer "user_id"
t.integer "amount_sats"
@@ -57,8 +57,10 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_19_101128) do
t.text "ln_login_ciphertext"
t.text "ln_password_ciphertext"
t.string "ln_account"
t.string "nostr_pubkey"
t.datetime "remember_created_at"
t.string "remember_token"
t.text "preferences"
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
end