Add omit_from_leaderboard to users

This commit is contained in:
Max Wofford
2025-05-07 13:50:15 -04:00
parent 567c77b1eb
commit 435bc5d23e
2 changed files with 7 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
class AddOmitFromLeaderboardToUsers < ActiveRecord::Migration[8.0]
def change
add_column :users, :omit_from_leaderboard, :boolean, default: false, 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[8.0].define(version: 2025_05_06_155521) do
ActiveRecord::Schema[8.0].define(version: 2025_05_07_174855) do
# These are extensions that must be enabled in order to support this database
enable_extension "pg_catalog.plpgsql"
@@ -308,6 +308,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_05_06_155521) do
t.string "github_username"
t.string "slack_username"
t.string "slack_neighborhood_channel"
t.boolean "omit_from_leaderboard", default: false, null: false
t.index ["slack_uid"], name: "index_users_on_slack_uid", unique: true
t.index ["timezone"], name: "index_users_on_timezone"
end