-
Notifications
You must be signed in to change notification settings - Fork 0
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
Send notification email upon assignment/unassignment #10
base: master
Are you sure you want to change the base?
Conversation
Pull Request Test Coverage Report for Build 120
💛 - Coveralls |
db/schema.rb
Outdated
@@ -25,10 +25,11 @@ | |||
create_table "deliverers", force: :cascade do |t| | |||
t.string "name" | |||
t.integer "vehicle" | |||
t.integer "phone" | |||
t.string "phone" |
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.
which migration converts this column to string?
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.
I have changed it back to t.integer
as migration for this change is suppose to be in PR #8 which is yet to be merged.
I'm unsure why the change is retained only for this branch though, could it be anomaly in the schema auto-generation?
@@ -8,6 +8,9 @@ class Deliverer < ApplicationRecord | |||
validates :phone, presence: { message: 'Phone field is empty' }, | |||
numericality: { only_integer: true, message: 'Phone has to be an integer' }, |
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.
is this validation still valid when the column type is changed to string?
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.
I am leaving it as it is for now since phone is now an integer
@@ -0,0 +1,58 @@ | |||
<h1> |
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.
where is this view used?
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.
Removed.
My bad, didn't remove when refractoring
https://trello.com/c/SHmRJX2b
Why is this change necessary?
How does it address the issue?
What side effects does this change have?
Deploy Notes
Email
added toDeliverer
Phone
@email.com"app/mailers
have been removed