retrospring/db/migrate/20221116201723_add_privacy_noindex_to_user.rb

12 lines
238 B
Ruby
Raw Normal View History

2022-11-16 22:31:49 +01:00
# 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