Skip to content

Commit e952252

Browse files
Merge pull request #5 from kwood6319/Setup
Setup
2 parents 53feae1 + 3e07f3a commit e952252

25 files changed

Lines changed: 604 additions & 10 deletions
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class CharitiesController < ApplicationController
2+
end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class DonorsController < ApplicationController
2+
end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class OffersController < ApplicationController
2+
end
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
class RequestsController < ApplicationController
2+
end

app/models/charity.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Charity < ApplicationRecord
2+
belongs_to :user
3+
has_many :requests
4+
end

app/models/donor.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Donor < ApplicationRecord
2+
belongs_to :user
3+
has_many :offers
4+
end

app/models/offer.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Offer < ApplicationRecord
2+
belongs_to :request
3+
belongs_to :donor
4+
end

app/models/request.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
class Request < ApplicationRecord
2+
belongs_to :charity
3+
has_many :offers
4+
end

app/views/offers/.gitkeep

Whitespace-only changes.

app/views/requests/.gitkeep

Whitespace-only changes.

0 commit comments

Comments
 (0)