Page 1 of 1
[14:58:05] tyul: Using npm it is possible to define alias to run commands like "npm start", "npm test", "npm run_custom_script", etc... is there a way to do something like that with rails? something like "rails mytask"
[18:37:07] tyul: What is the best way to model something like a user's address book, in which a user has many addresses but one of them was chosen as the main address. There are many kind of things that have this pattern and I need to work with something similar. When I had to do that in a company I worked before, a guy said that it was a bad idea to put a foreign key on the user table to one of the addresses because would give a "lock" when delet
[18:38:41] tyul: he said it was better to use a boolean "default" field. But the problem is that more than one address can have default true which is a bad thing
[18:39:12] tyul: but we didn't use rails at the time, so I would like to know what is the best way to deal with this pattern using rails