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
Huỳnh Thiên Phước
venjob
Commits
315635d0
Commit
315635d0
authored
Aug 04, 2020
by
Huỳnh Thiên Phước
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete migrate and rename
parent
4885e10f
Pipeline
#791
canceled with stages
in 0 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
db/migrate/20200723071239_create_top_pages.rb
+0
-8
lib/src/csv_importer.rb
+2
-2
No files found.
db/migrate/20200723071239_create_top_pages.rb
deleted
100644 → 0
View file @
4885e10f
class
CreateTopPages
<
ActiveRecord
::
Migration
[
5.2
]
def
change
create_table
:top_pages
do
|
t
|
t
.
timestamps
end
end
end
lib/src/csv_importer.rb
View file @
315635d0
...
...
@@ -6,8 +6,8 @@ class CSVImporter
def
initialize
(
logger
)
@logger
=
logger
NAME_DOMAIN
=
'192.168.1.156'
.
freeze
USERNAME_FTP
=
'training'
.
freeze
PASSWORD_FTP
=
'training'
.
freeze
FTP_USERNAME
=
'training'
.
freeze
FTP_PASSWORD
=
'training'
.
freeze
@extracting_directory
=
Rails
.
root
.
join
(
'lib'
,
'csv'
)
@zip_directory
=
Rails
.
root
.
join
(
'jobs.zip'
)
@importer
=
Rails
.
root
.
join
(
'lib'
,
'csv'
,
'jobs.csv'
)
...
...
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