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 Ngoc Nghia
VeNJOB
Commits
0f5b554b
Commit
0f5b554b
authored
Dec 06, 2019
by
nnnghia98
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
edit model files
parent
aa3d07a6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
0 additions
and
28 deletions
+0
-28
app/models/city.rb
+0
-4
app/models/company.rb
+0
-8
app/models/industry.rb
+0
-3
app/models/job.rb
+0
-13
No files found.
app/models/city.rb
View file @
0f5b554b
...
...
@@ -13,9 +13,5 @@
# index_cities_on_name (name) UNIQUE
#
# In database
# t.string :name, unique: true
# t.string :region
class
City
<
ApplicationRecord
end
app/models/company.rb
View file @
0f5b554b
...
...
@@ -17,14 +17,6 @@
# index_companies_on_email (email) UNIQUE
#
# In db
# t.string :name
# t.string :email, unique: true
# t.text :description
# t.string :address
# add_index :industries, :name, unique: true
class
Company
<
ApplicationRecord
has_many
:jobs
,
dependent: :destroy
end
app/models/industry.rb
View file @
0f5b554b
...
...
@@ -12,8 +12,5 @@
# index_industries_on_name (name) UNIQUE
#
# In db
# t.string :name
class
Industry
<
ApplicationRecord
end
app/models/job.rb
View file @
0f5b554b
...
...
@@ -28,19 +28,6 @@
# fk_rails_... (company_id => companies.id)
#
# In database
# t.string :title
# t.string :level
# t.string :salary
# t.string :other_salary
# t.text :description
# t.text :short_des
# t.text :requirement
# t.integer :category
# t.datetime :post_date
# t.datetime :expiration_date
# t.references :company, null: false, foreign_key: true
class
Job
<
ApplicationRecord
belongs_to
:company
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