Skip to content

Commit

Permalink
Add schema changes to user preferences to support in notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
cmrd-senya committed Jul 21, 2022
1 parent 9b24407 commit 4be89fc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions db/migrate/20220721190153_add_email_enabled_to_user_preferences.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# frozen_string_literal: true

class AddEmailEnabledToUserPreferences < ActiveRecord::Migration[6.1]
def change
change_table :user_preferences, bulk: true do |t|
t.boolean :email_enabled, null: false, default: false
t.boolean :in_app_enabled, null: false, default: true
end
end
end

0 comments on commit 4be89fc

Please sign in to comment.