diff --git a/db/migrate/20250507174855_add_omit_from_leaderboard_to_users.rb b/db/migrate/20250507174855_add_omit_from_leaderboard_to_users.rb new file mode 100644 index 0000000..4111114 --- /dev/null +++ b/db/migrate/20250507174855_add_omit_from_leaderboard_to_users.rb @@ -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 diff --git a/db/schema.rb b/db/schema.rb index 81ade03..52a2074 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -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