-
Notifications
You must be signed in to change notification settings - Fork 68
Added push notifications setting #356
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -494,8 +494,7 @@ pt-BR: | |
edit: | ||
edit_user: Trocar usuário | ||
form: | ||
admin_warning: Atenção!!! Você está dando poderes a este usuário!! | ||
superadmin_warning: Atenção!!! Você está dando PODERES DIVINOS a este usuário!! | ||
notifications: Notificações | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. very professional |
||
give_time: | ||
give_time: Dar Tempo a | ||
index: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddPushNotificationsToUsers < ActiveRecord::Migration | ||
def change | ||
add_column :users, :push_notifications, :boolean, default: true, null: false | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
# | ||
# It's strongly recommended that you check this file into your version control system. | ||
|
||
ActiveRecord::Schema.define(version: 20180529144243) do | ||
ActiveRecord::Schema.define(version: 20180530180546) do | ||
|
||
# These are extensions that must be enabled in order to support this database | ||
enable_extension "plpgsql" | ||
|
@@ -215,6 +215,7 @@ | |
t.datetime "locked_at" | ||
t.string "locale", default: "es" | ||
t.boolean "notifications", default: true | ||
t.boolean "push_notifications", default: true, null: false | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we need to add a data migration for the existing records? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe the default makes it unnecessary. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. existing records will default to |
||
end | ||
|
||
add_index "users", ["email"], name: "index_users_on_email", using: :btree | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we use locale app for this? cc/ @sseerrggii