Adding notifications_enabled attribute to users

This diff just contains the migration and profile edition.

Refers to [This Project Card](https://github.com/riggraz/astuto/projects/1#card-31194036) and #33
This commit is contained in:
Kevin Vinhas
2021-01-26 23:42:36 +01:00
committed by Riccardo Graziosi
parent 0cc130a797
commit 9dfb13eff6
8 changed files with 70 additions and 16 deletions

View File

@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema.define(version: 2019_10_01_160859) do
ActiveRecord::Schema.define(version: 2021_01_26_215831) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -84,6 +84,7 @@ ActiveRecord::Schema.define(version: 2019_10_01_160859) do
t.datetime "updated_at", precision: 6, null: false
t.integer "role"
t.string "full_name"
t.boolean "notifications_enabled", default: true, null: false
t.index ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true
t.index ["email"], name: "index_users_on_email", unique: true
t.index ["reset_password_token"], name: "index_users_on_reset_password_token", unique: true