diff --git a/app/controllers/management/users_controller.rb b/app/controllers/management/users_controller.rb index 43f23f40e..786f7b890 100644 --- a/app/controllers/management/users_controller.rb +++ b/app/controllers/management/users_controller.rb @@ -59,7 +59,6 @@ class Management::UsersController < Management::BaseController @user.confirmed_at = Time.current @user.newsletter = false - @user.email_on_proposal_notification = false @user.email_digest = false @user.email_on_direct_message = false @user.email_on_comment = false diff --git a/db/migrate/20230523090028_remove_email_on_proposal_notification_from_users.rb b/db/migrate/20230523090028_remove_email_on_proposal_notification_from_users.rb new file mode 100644 index 000000000..8d855b38c --- /dev/null +++ b/db/migrate/20230523090028_remove_email_on_proposal_notification_from_users.rb @@ -0,0 +1,5 @@ +class RemoveEmailOnProposalNotificationFromUsers < ActiveRecord::Migration[6.0] + def change + remove_column :users, :email_on_proposal_notification, :boolean, default: true + end +end diff --git a/db/schema.rb b/db/schema.rb index 802fe82b0..75b8d5713 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -10,7 +10,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 2023_02_06_141152) do +ActiveRecord::Schema.define(version: 2023_05_23_090028) do # These are extensions that must be enabled in order to support this database enable_extension "pg_trgm" @@ -1630,7 +1630,6 @@ ActiveRecord::Schema.define(version: 2023_02_06_141152) do t.string "redeemable_code" t.string "gender", limit: 10 t.datetime "date_of_birth" - t.boolean "email_on_proposal_notification", default: true t.boolean "email_digest", default: true t.boolean "email_on_direct_message", default: true t.boolean "official_position_badge", default: false