1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-19 05:09:38 +02:00

Preference to set default_period (#1941)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

This commit is contained in:
Nikhil Badyal 2025-03-07 20:35:54 +05:30 committed by GitHub
parent 372b64ffea
commit 26762477a3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 35 additions and 8 deletions

View file

@ -0,0 +1,5 @@
class AddDefaultPeriodToUsers < ActiveRecord::Migration[7.2]
def change
add_column :users, :default_period, :string, default: "last_30_days", null: false
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[7.2].define(version: 2025_03_03_141007) do
ActiveRecord::Schema[7.2].define(version: 2025_03_04_140435) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@ -675,6 +675,7 @@ ActiveRecord::Schema[7.2].define(version: 2025_03_03_141007) do
t.boolean "otp_required", default: false, null: false
t.string "otp_backup_codes", default: [], array: true
t.boolean "show_sidebar", default: true
t.string "default_period", default: "last_30_days", null: false
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["family_id"], name: "index_users_on_family_id"
t.index ["otp_secret"], name: "index_users_on_otp_secret", unique: true, where: "(otp_secret IS NOT NULL)"