debshots/db/migrate/20210228191717_add_pseudo_column_to_user.rb

8 lines
315 B
Ruby

# Create a pseudo flag for accounts that get automatically created.
# If an anonymous visitor uploads a screenshot he will get a
# pseudo account to assign the screenshots to.
class AddPseudoColumnToUser < ActiveRecord::Migration[6.1]
def change
add_column :users, :pseudo, :boolean, default: false
end
end