Skip to content

Commit

Permalink
Added basic models and associations discussed previously
Browse files Browse the repository at this point in the history
  • Loading branch information
Druotic authored and Shanil Puri committed Sep 22, 2014
1 parent de4c8df commit c62cc4c
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/category.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Category < ActiveRecord::Base
has_many :jobs
end
4 changes: 4 additions & 0 deletions app/models/job.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
class Job < ActiveRecord::Base
has_and_belongs_to_many :tags
has_one :category
end
3 changes: 3 additions & 0 deletions app/models/jobseeker.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Jobseeker < ActiveRecord::Base
has_and_belongs_to_many :roles
end
2 changes: 2 additions & 0 deletions app/models/skill.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
class Skill < ActiveRecord::Base
end
3 changes: 3 additions & 0 deletions app/models/tag.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class Tag < ActiveRecord::Base
has_and_belongs_to_many :jobs
end

0 comments on commit c62cc4c

Please sign in to comment.