delete migrate and rename

parent 4885e10f
Pipeline #791 canceled with stages
in 0 seconds
class CreateTopPages < ActiveRecord::Migration[5.2]
def change
create_table :top_pages do |t|
t.timestamps
end
end
end
...@@ -6,14 +6,14 @@ class CSVImporter ...@@ -6,14 +6,14 @@ class CSVImporter
def initialize(logger) def initialize(logger)
@logger = logger @logger = logger
NAME_DOMAIN = '192.168.1.156'.freeze NAME_DOMAIN = '192.168.1.156'.freeze
USERNAME_FTP = 'training'.freeze FTP_USERNAME = 'training'.freeze
PASSWORD_FTP = 'training'.freeze FTP_PASSWORD = 'training'.freeze
@extracting_directory = Rails.root.join('lib', 'csv') @extracting_directory = Rails.root.join('lib', 'csv')
@zip_directory = Rails.root.join('jobs.zip') @zip_directory = Rails.root.join('jobs.zip')
@importer = Rails.root.join('lib', 'csv', 'jobs.csv') @importer = Rails.root.join('lib', 'csv', 'jobs.csv')
end end
def import def import
get_file_csv get_file_csv
extract_zip extract_zip
import_file_csv import_file_csv
...@@ -73,4 +73,4 @@ class CSVImporter ...@@ -73,4 +73,4 @@ class CSVImporter
end end
end end
end end
end end
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment