diff --git a/db/migrate/20250531120000_add_allow_public_stats_lookup_to_users.rb b/db/migrate/20250531120000_add_allow_public_stats_lookup_to_users.rb
new file mode 100644
index 0000000..f9e7731
--- /dev/null
+++ b/db/migrate/20250531120000_add_allow_public_stats_lookup_to_users.rb
@@ -0,0 +1,5 @@
+class AddAllowPublicStatsLookupToUsers < ActiveRecord::Migration[7.0]
+ def change
+ add_column :users, :allow_public_stats_lookup, :boolean, default: true, null: false
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 2cc1732..22b8c7c 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_30_135145) do
+ActiveRecord::Schema[8.0].define(version: 2025_05_31_120000) do
create_schema "pganalyze"
# These are extensions that must be enabled in order to support this database
@@ -426,6 +426,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_05_30_135145) do
t.integer "trust_level", default: 0, null: false
t.string "country_code"
t.string "mailing_address_otc"
+ t.boolean "allow_public_stats_lookup", default: true, null: false
t.index ["slack_uid"], name: "index_users_on_slack_uid", unique: true
t.index ["timezone"], name: "index_users_on_timezone"
end