Retrospring/db/migrate/20150103200732_add_privacy_...

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

15 lines
348 B
Ruby
Raw Normal View History

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