Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
venjob_nth
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
Ngô Trung Hưng
venjob_nth
Commits
0ac0989b
Commit
0ac0989b
authored
Jul 29, 2020
by
Ngô Trung Hưng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix code
parent
8fecd429
Pipeline
#736
failed with stages
in 0 seconds
Changes
5
Pipelines
1
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
3 deletions
+9
-3
app/models/city.rb
+1
-0
db/migrate/20200729064551_change_column_table_city.rb
+6
-0
db/schema.rb
+2
-2
lib/src/interface_web.rb
+0
-0
lib/tasks/crawler.rake
+0
-1
No files found.
app/models/city.rb
View file @
0ac0989b
...
@@ -4,4 +4,5 @@
...
@@ -4,4 +4,5 @@
class
City
<
ApplicationRecord
class
City
<
ApplicationRecord
has_many
:city_jobs
has_many
:city_jobs
has_many
:jobs
,
through: :city_jobs
has_many
:jobs
,
through: :city_jobs
enum
area:
{
international:
0
,
domestic
:
1
,
range:
69
}
end
end
db/migrate/20200729064551_change_column_table_city.rb
0 → 100644
View file @
0ac0989b
class
ChangeColumnTableCity
<
ActiveRecord
::
Migration
[
5.2
]
def
change
change_column
:cities
,
:area
,
:integer
#Ex:- change_column("admin_users", "email", :string, :limit =>25)
end
end
db/schema.rb
View file @
0ac0989b
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#
#
# It's strongly recommended that you check this file into your version control system.
# It's strongly recommended that you check this file into your version control system.
ActiveRecord
::
Schema
.
define
(
version:
2020_07_2
8_021412
)
do
ActiveRecord
::
Schema
.
define
(
version:
2020_07_2
9_064551
)
do
create_table
"applied_jobs"
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
,
force: :cascade
do
|
t
|
create_table
"applied_jobs"
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
,
force: :cascade
do
|
t
|
t
.
bigint
"user_id"
t
.
bigint
"user_id"
...
@@ -26,7 +26,7 @@ ActiveRecord::Schema.define(version: 2020_07_28_021412) do
...
@@ -26,7 +26,7 @@ ActiveRecord::Schema.define(version: 2020_07_28_021412) do
create_table
"cities"
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
,
force: :cascade
do
|
t
|
create_table
"cities"
,
options:
"ENGINE=InnoDB DEFAULT CHARSET=utf8"
,
force: :cascade
do
|
t
|
t
.
string
"name"
t
.
string
"name"
t
.
boolean
"area"
t
.
integer
"area"
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"created_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
t
.
datetime
"updated_at"
,
null:
false
end
end
...
...
lib/src/interface_web.rb
View file @
0ac0989b
This diff is collapsed.
Click to expand it.
lib/tasks/crawler.rake
View file @
0ac0989b
...
@@ -13,6 +13,5 @@ namespace :crawler do
...
@@ -13,6 +13,5 @@ namespace :crawler do
cw
=
Crawler
.
new
cw
=
Crawler
.
new
cw
.
craw_data_cities
cw
.
craw_data_cities
cw
.
craw_data_companies
cw
.
craw_data_companies
cw
.
make_data
end
end
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