retrospring/db/migrate/20221115194933_add_privacy_hide_social_graph.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
260 B
Ruby
Raw Normal View History

2022-11-15 21:41:05 +01:00
# frozen_string_literal: true
2022-11-15 21:34:03 +01:00
class AddPrivacyHideSocialGraph < ActiveRecord::Migration[6.1]
def up
add_column :users, :privacy_hide_social_graph, :boolean, default: false
end
def down
remove_column :users, :privacy_hide_social_graph
end
end