jrhorn424 / recruiter

Online recruitment software for economics experiments written with rails
MIT License
1 stars 1 forks source link

Add remaining models #1

Closed jrhorn424 closed 10 years ago

jrhorn424 commented 11 years ago

We need to discuss this code. I'll make comments in the code, but a few general notes:

We can't automatically merge this branch into master since there are so many conflicts. That largely unavoidable, but remember:

jrhorn424 commented 11 years ago

Let's do a code review together. You look at my code, and I'll look at yours. This is the best time to ask questions, since we can mark the code directly with comments. When we're both ready, we'll merge.

jrhorn424 commented 11 years ago

I've extensively rewritten the history. I'll show you the DAG for the code later today. This means your local copy is probably broken, so we'll need to fix that. I'm not sure if any of these patches are correct, since I had no clue what the intent was for each commit.

One thing I noticed when resolving these conflicts is that we need to be consistent with the naming of our join tables. I prefer the format parents_childs_table. For example, experimenters_experiments_table. It's less clear what we should do in the case of many-to-many relationships. What do you think? I find users_sessions_table slightly more preferable than sessions_users_table, but I don't know why.

mlfreer commented 11 years ago

Names of joint tables are written consistency with ruby convention, that subjects should be in the alphabetic order. If it's necessary to change i can do it  

Понедельник, 7 октября 2013, 2:20 -07:00 от Jeffrey Horn notifications@github.com:

I've extensively rewritten the history. I'll show you the DAG for the code later today. This means your local copy is probably broken, so we'll need to fix that. I'm not sure if any of these patches are correct, since I had no clue what the intent was for each commit. One thing I noticed when resolving these conflicts is that we need to be consistent with the naming of our join tables. I prefer the format parents_childs_table. For example, experimenters_experiments_table. It's less clear what we should do in the case of many-to-many relationships. What do you think? I find users_sessions_table slightly more preferable than sessions_users_table, but I don't know why. — Reply to this email directly or view it on GitHub .

Миша Фреер

jrhorn424 commented 11 years ago

Don't worry about changing the join table names, as long as we're following a convention.

jrhorn424 commented 11 years ago

OK, you can pull --rebase to get my last commit, make any changes requested in this discussion, and push the commits to this branch. The pull request will be automatically updated. Once that's done, we can merge.