Retrospring/db/migrate/20221116201723_add_privacy_...

12 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