Creates addresses table and associations#511
Conversation
|
@keshavbiswa please help with the failing test. |
Current Code Coverage Percent of this PR:88.69 %Files having coverage below 100%
|
rohitjoshixyz
left a comment
There was a problem hiding this comment.
What is the purpose of address_line_2? We are anyways storing the address_type right?Codel LGTM otherwise
| t.bigint "addressable_id" | ||
| t.string "address_type" | ||
| t.string "address_line_1", null: false | ||
| t.string "address_line_2" |
There was a problem hiding this comment.
What are we storing in address line 2?
There was a problem hiding this comment.
Hey, we did not have any field for house no. or flat no. so made a generic field called address_line_1 . On UI we can show a message to populate house no etc.
address_line_2 is optional, if user wants to give more details like street etc.
There was a problem hiding this comment.
Added missing state column as well :)
apoorv-mishra
left a comment
There was a problem hiding this comment.
LGTM! Tidy work @mohinid 👍
* Creates addresses table and associations * Fixed tests * test fix * Adds state column to addresses table * Updates state field to be not_null Co-authored-by: Keshav Biswa <[email protected]>
Notion card
https://www.notion.so/saeloun/Add-tables-for-personal-employment-Allocated-devices-Address-71ef49d0c38e4242bd2998120141372d
Summary
Preview
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
With RSpecs and on the console.
Checklist: