mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 10:09:53 +01:00
14 lines
348 B
Ruby
14 lines
348 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddPrivacyOptionsToUsers < ActiveRecord::Migration[4.2]
|
|
def change
|
|
%i[
|
|
privacy_allow_anonymous_questions
|
|
privacy_allow_public_timeline
|
|
privacy_allow_stranger_answers
|
|
privacy_show_in_search
|
|
].each do |sym|
|
|
add_column :users, sym, :boolean, default: true
|
|
end
|
|
end
|
|
end
|