Skip to content

Commit

Permalink
Store theme with the user too
Browse files Browse the repository at this point in the history
  • Loading branch information
mlandauer committed Sep 13, 2023
1 parent ef288c6 commit 4e4ddd6
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 1 deletion.
5 changes: 5 additions & 0 deletions db/migrate/20230913030607_add_tailwind_theme_to_users.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
class AddTailwindThemeToUsers < ActiveRecord::Migration[7.0]
def change
add_column :users, :tailwind_theme, :boolean, null: false, default: false
end
end
3 changes: 2 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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_04_27_064849) do
ActiveRecord::Schema[7.0].define(version: 2023_09_13_030607) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
enable_extension "postgis"
Expand Down Expand Up @@ -316,6 +316,7 @@
t.string "unlock_token"
t.datetime "locked_at"
t.datetime "activated_at"
t.boolean "tailwind_theme", default: false, null: false
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true
Expand Down
57 changes: 57 additions & 0 deletions sorbet/rbi/dsl/user.rbi

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4e4ddd6

Please sign in to comment.