retrospring/db/migrate/20221116201723_add_privacy_noindex_to_user.rb
2022-11-16 22:31:49 +01:00

11 lines
238 B
Ruby

# frozen_string_literal: true
class AddPrivacyNoindexToUser < ActiveRecord::Migration[6.1]
def up
add_column :users, :privacy_noindex, :boolean, default: false
end
def down
remove_column :users, :privacy_noindex
end
end