retrospring/db/migrate/20150103200732_add_privacy_options_to_users.rb

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

15 lines
348 B
Ruby
Raw Permalink Normal View History

2023-10-20 01:37:34 +02:00
# frozen_string_literal: true
class AddPrivacyOptionsToUsers < ActiveRecord::Migration[4.2]
2015-01-03 21:43:19 +01:00
def change
2023-10-20 01:37:34 +02:00
%i[
2015-01-03 21:43:19 +01:00
privacy_allow_anonymous_questions
privacy_allow_public_timeline
privacy_allow_stranger_answers
privacy_show_in_search
2023-10-20 01:37:34 +02:00
].each do |sym|
2015-01-03 21:43:19 +01:00
add_column :users, sym, :boolean, default: true
end
end
end