retrospring/db/migrate/20150103200732_add_privacy_options_to_users.rb
2015-01-03 21:43:19 +01:00

12 lines
312 B
Ruby

class AddPrivacyOptionsToUsers < ActiveRecord::Migration
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