Skip to content
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

Edition feature #2

Open
zerothabhishek opened this issue Jan 15, 2015 · 2 comments
Open

Edition feature #2

zerothabhishek opened this issue Jan 15, 2015 · 2 comments
Assignees

Comments

@zerothabhishek
Copy link
Member

We need a resource called edition that match the various editions of the workshop. There should be a separate record for January-2015 edition, and a separate one for Nov-2014 and so on.

Edition model will have a name and date, and a small CRUD interface for the admin
The home page will only show the upcoming edition, or the just passed one

Here's its associations:

  Edition has_many :participants
  Edition has_many :coaches
  Participant belongs_to :edition
  Coach belongs_to :edition

And also a migration script that attaches all the existing participants to the Nov edition

@vraravam vraravam self-assigned this Jan 15, 2015
vraravam added a commit that referenced this issue Jan 15, 2015
solves #2 and other small changes
@vraravam
Copy link
Contributor

Shouldn't the relationships be more of has_many through? Coz there can be many editions - and each participant/coach can be associated with more than 1 edition.

@steverob
Copy link
Member

+1

Regards
Steve Robinson

On 15-Jan-2015, at 2:35 pm, Vijay Aravamudhan [email protected] wrote:

Shouldn't the relationships be more of has_many through? Coz there can be many editions - and each participant/coach can be associated with more than 1 edition.


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants