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
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nguyen Hoang Mai Phuong
VeNJOB
Commits
860fb0d0
Commit
860fb0d0
authored
Jul 08, 2021
by
Nguyen Hoang Mai Phuong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix migration
parent
220791af
Pipeline
#1343
failed with stages
in 0 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
0 deletions
+6
-0
app/models/city.rb
+1
-0
app/models/company.rb
+1
-0
app/models/industry.rb
+1
-0
app/models/job.rb
+3
-0
No files found.
app/models/city.rb
View file @
860fb0d0
class
City
<
ApplicationRecord
class
City
<
ApplicationRecord
has_and_belongs_to_many
:jobs
has_and_belongs_to_many
:jobs
has_and_belongs_to_many
:companies
has_many
:regions
has_many
:regions
end
end
app/models/company.rb
View file @
860fb0d0
class
Company
<
ApplicationRecord
class
Company
<
ApplicationRecord
has_and_belongs_to_many
:cities
has_and_belongs_to_many
:cities
has_many
:jobs
end
end
app/models/industry.rb
View file @
860fb0d0
class
Industry
<
ApplicationRecord
class
Industry
<
ApplicationRecord
has_and_belongs_to_many
:jobs
end
end
app/models/job.rb
View file @
860fb0d0
class
Job
<
ApplicationRecord
class
Job
<
ApplicationRecord
has_and_belongs_to_many
:users
has_and_belongs_to_many
:users
has_and_belongs_to_many
:industries
has_and_belongs_to_many
:cities
has_many
:applies_jobs
has_many
:applies_jobs
has_many
:users
,
through: :applies_jobs
has_many
:users
,
through: :applies_jobs
belongs_to
:company
end
end
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