2016-06-09 12:39:16 +00:00
|
|
|
# rubocop:disable all
|
2016-05-16 15:42:34 +00:00
|
|
|
class AddSendUserConfirmationEmailToApplicationSettings < ActiveRecord::Migration
|
2016-04-28 20:09:15 +00:00
|
|
|
def up
|
|
|
|
add_column :application_settings, :send_user_confirmation_email, :boolean, default: false
|
|
|
|
|
|
|
|
#Sets confirmation email to true by default on existing installations.
|
2016-05-06 20:59:45 +00:00
|
|
|
execute "UPDATE application_settings SET send_user_confirmation_email=true"
|
2016-04-28 20:09:15 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :application_settings, :send_user_confirmation_email
|
|
|
|
end
|
|
|
|
end
|