Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_thanhnd
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
3
Merge Requests
3
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
thanhnd
venjob_thanhnd
Commits
d4068924
Commit
d4068924
authored
Feb 18, 2020
by
thanhnd
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix reviews 20200218 16:38
parent
32df57ae
Pipeline
#468
failed with stages
in 0 seconds
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
43 additions
and
43 deletions
+43
-43
db/migrate/20200204084723_create_cities.rb
+4
-4
db/migrate/20200204084729_create_companies.rb
+9
-8
db/migrate/20200204084733_create_industries.rb
+2
-2
db/migrate/20200204084737_create_industry_jobs.rb
+2
-2
db/migrate/20200204084741_create_jobs.rb
+11
-12
db/migrate/20200204084746_create_users.rb
+11
-11
db/migrate/20200204084750_create_saved_jobs.rb
+2
-2
db/migrate/20200204084755_create_applied_jobs.rb
+2
-2
No files found.
db/migrate/20200204084723_create_cities.rb
View file @
d4068924
class
CreateCities
<
ActiveRecord
::
Migration
[
6.0
]
def
change
create_table
:cities
do
|
t
|
t
.
column
:area_id
,
:int
t
.
column
:city_name
,
:string
t
.
column
:city_description
,
:string
t
.
int
:area_id
t
.
string
:city_name
t
.
string
:city_description
t
.
timestamps
end
add_index
:cities
,
:area_id
add_index
:city_name
end
end
db/migrate/20200204084729_create_companies.rb
View file @
d4068924
class
CreateCompanies
<
ActiveRecord
::
Migration
[
6.0
]
def
change
create_table
:companies
do
|
t
|
t
.
column
:company_name
,
:string
t
.
column
:company_description
,
:text
t
.
column
:address
,
:string
t
.
column
:phone_number
,
:string
t
.
column
:website
,
:string
t
.
column
:email
,
:string
t
.
column
:size
,
:int
t
.
string
:company_name
t
.
text
:company_description
t
.
string
:address
t
.
string
:phone_number
t
.
string
:website
t
.
string
:email
t
.
string
:size
t
.
timestamps
end
add_index
:companies
,
:email
add_index
:companies_name
add_index
:email
end
end
db/migrate/20200204084733_create_industries.rb
View file @
d4068924
class
CreateIndustries
<
ActiveRecord
::
Migration
[
6.0
]
def
change
create_table
:industries
do
|
t
|
t
.
column
:industry_name
,
:text
,
:null
=>
fals
e
t
.
column
:industry_description
,
:string
t
.
text
:industry_nam
e
t
.
string
:industry_description
t
.
timestamps
end
end
...
...
db/migrate/20200204084737_create_industry_jobs.rb
View file @
d4068924
class
CreateIndustryJobs
<
ActiveRecord
::
Migration
[
6.0
]
def
change
create_table
:industry_jobs
do
|
t
|
t
.
column
:industry_id
,
:int
,
:null
=>
false
t
.
column
:job_id
,
:int
,
:null
=>
false
t
.
int
:industry_id
t
.
int
:job_id
t
.
timestamps
end
end
...
...
db/migrate/20200204084741_create_jobs.rb
View file @
d4068924
class
CreateJobs
<
ActiveRecord
::
Migration
[
6.0
]
def
change
create_table
:jobs
do
|
t
|
t
.
column
:area_id
,
:int
,
:null
=>
false
t
.
column
:city_id
,
:int
,
:null
=>
false
t
.
column
:industry_id
,
:int
,
:null
=>
false
t
.
column
:company_id
,
:int
,
:null
=>
false
t
.
column
:code
,
:string
,
:null
=>
false
t
.
column
:job_name
,
:text
,
:null
=>
false
t
.
column
:salary
,
:string
t
.
column
:deadline
,
:Date
t
.
column
:level
,
:string
t
.
column
:experience
,
:string
t
.
column
:last_updated
,
:Date
t
.
column
:description
,
:text
t
.
int
:area_id
t
.
int
:city_id
t
.
int
:industry_id
t
.
int
:company_id
t
.
text
:job_name
t
.
string
:salary
t
.
datetime
:deadline
t
.
string
:level
t
.
string
:experience
t
.
datetime
:last_updated
t
.
text
:description
t
.
timestamps
end
end
...
...
db/migrate/20200204084746_create_users.rb
View file @
d4068924
class
CreateUsers
<
ActiveRecord
::
Migration
[
6.0
]
def
change
create_table
:users
do
|
t
|
t
.
column
:email
,
:string
,
:null
=>
false
t
.
column
:fname
,
:string
,
:null
=>
fals
e
t
.
column
:lname
,
:string
,
:null
=>
fals
e
t
.
column
:role
,
:int
,
:null
=>
fals
e
t
.
column
:remember_digest
,
:string
t
.
column
:activation_digest
,
:string
t
.
column
:activated
,
:Boolean
t
.
column
:activated_at
,
:timestamp
t
.
column
:reset_digest
,
:string
t
.
column
:reset_sent_at
,
:timestamp
t
.
column
:password_digest
,
:string
t
.
string
:email
t
.
string
:fnam
e
t
.
string
:lnam
e
t
.
int
:rol
e
t
.
string
:remember_digest
t
.
string
:activation_digest
t
.
boolean
:activated
t
.
datetime
:activated_at
t
.
string
:reset_digest
t
.
datetime
:reset_sent_at
t
.
string
:password_digest
t
.
timestamps
end
end
...
...
db/migrate/20200204084750_create_saved_jobs.rb
View file @
d4068924
class
CreateSavedJobs
<
ActiveRecord
::
Migration
[
6.0
]
def
change
create_table
:saved_jobs
do
|
t
|
t
.
column
:user_id
,
:int
,
:null
=>
false
t
.
column
:job_id
,
:int
,
:null
=>
false
t
.
int
:user_id
t
.
int
:job_id
t
.
timestamps
end
end
...
...
db/migrate/20200204084755_create_applied_jobs.rb
View file @
d4068924
class
CreateAppliedJobs
<
ActiveRecord
::
Migration
[
6.0
]
def
change
create_table
:applied_jobs
do
|
t
|
t
.
column
:user_id
,
:int
,
:null
=>
false
t
.
column
:job_id
,
:int
,
:null
=>
false
t
.
int
:user_id
t
.
int
:job_id
t
.
timestamps
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