impress/db/migrate/20240421033509_add_shadowbanned_to_users.rb
Emi Matchu 156cabbab4 Add shadowban mechanism for closet lists
Simple enough to start! If `shadowbanned: true` gets set on a user,
then we show a 404 instead of the actual list page, *unless* you're
logged in as that user, or coming from a known IP of that user.

This isn't a very strong mechanism! Just something to hopefully
increase the costs of messing around with list spam.
2024-04-20 20:57:15 -07:00

5 lines
159 B
Ruby

class AddShadowbannedToUsers < ActiveRecord::Migration[7.1]
def change
add_column :users, :shadowbanned, :boolean, default: false, null: false
end
end