2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2016-06-02 11:05:42 +05:30
|
|
|
class AddSendUserConfirmationEmailToApplicationSettings < ActiveRecord::Migration
|
|
|
|
def up
|
|
|
|
add_column :application_settings, :send_user_confirmation_email, :boolean, default: false
|
|
|
|
|
|
|
|
#Sets confirmation email to true by default on existing installations.
|
|
|
|
execute "UPDATE application_settings SET send_user_confirmation_email=true"
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :application_settings, :send_user_confirmation_email
|
|
|
|
end
|
|
|
|
end
|