cuhacking / CUHackingApp

CUHacking App - 2018 version
2 stars 0 forks source link

Fixed seeds file, fixed relationships, belongs_to becomes has_many_an… #27

Closed AngelOnFira closed 7 years ago

AngelOnFira commented 7 years ago

…d_belongs_to, added test data for events, fixed columns named "type".

What are you trying to accomplish with this PR?

Add the ability to get a list of events from the database.

...

How is this accomplished?

Setting up the events controller, fixing relationships between migrations.

...

Checklist

How to test

Once you change to the branch, these commands should work from the parent directory.

cd backend/
bundle install
rake db:drop db:create db:migrate db:seed
rails server

Then go to localhost:3000/events/