Rails address line 2 – db best practices

I want to create standard User devise model but additionally to user email and password I need:

 First name
 Last name
 Company name
 Address Line 1
 Address Line 2
 Contact number

I will display those fields to the user so I'm wondering should I create two db columns e.g. address_line_1 and address_line_2 or collect data from two fields in to one column named e.g. address? What are best practices in such cases?

Read more here: https://stackoverflow.com/questions/66994412/rails-address-line-2-db-best-practices

Content Attribution

This content was originally published by mr_muscle at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: