Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xuan Trung Le
venjob
Commits
35ed72e5
Commit
35ed72e5
authored
Oct 02, 2017
by
Xuan Trung Le
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix creating db
parent
1030295e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
10 deletions
+4
-10
app/models/industries_job.rb
+0
-4
app/models/industry.rb
+1
-2
app/models/job.rb
+2
-3
app/models/user.rb
+1
-1
No files found.
app/models/industries_job.rb
deleted
100644 → 0
View file @
1030295e
class
IndustriesJob
<
ApplicationRecord
belongs_to
:industry
belongs_to
:job
end
app/models/industry.rb
View file @
35ed72e5
class
Industry
<
ApplicationRecord
has_many
:industries_jobs
has_many
:jobs
,
through: :industries_jobs
has_and_belongs_to_many
:jobs
end
app/models/job.rb
View file @
35ed72e5
...
...
@@ -2,9 +2,8 @@ class Job < ApplicationRecord
belongs_to
:city
belongs_to
:company
has_many
:apply_jobs
has_many
:users
,
through: :
favorite
_jobs
has_many
:users
,
through: :
apply
_jobs
has_many
:favorite_jobs
has_many
:users
,
through: :favorite_jobs
has_many
:industries_jobs
has_many
:industries
,
through: :industries_jobs
has_and_belongs_to_many
:industries
end
app/models/user.rb
View file @
35ed72e5
class
User
<
ApplicationRecord
has_many
:apply_jobs
has_many
:jobs
,
through: :
favorite
_jobs
has_many
:jobs
,
through: :
apply
_jobs
has_many
:favorite_jobs
has_many
:jobs
,
through: :favorite_jobs
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment