Retrospring/db/migrate/20221113110942_add_privacy_...

10 lines
222 B
Ruby

class AddPrivacyRequireUserToUsers < ActiveRecord::Migration[6.1]
def up
add_column :users, :privacy_require_user, :boolean, default: false
end
def down
remove_column :users, :privacy_require_user
end
end