From 04377d8997ce9415721b5c441061ca7dd736001a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karl=20Erik=20=C3=95unapuu?= Date: Tue, 8 Sep 2020 16:26:32 +0300 Subject: [PATCH] Remove 'import_file_path' from bank_statements model --- config/application.yml.sample | 1 - ...31554_remove_import_file_path_from_bank_statements.rb | 9 +++++++++ db/structure.sql | 6 ++++-- 3 files changed, 13 insertions(+), 3 deletions(-) create mode 100644 db/migrate/20200908131554_remove_import_file_path_from_bank_statements.rb diff --git a/config/application.yml.sample b/config/application.yml.sample index d5753adb6..1b6c40951 100644 --- a/config/application.yml.sample +++ b/config/application.yml.sample @@ -27,7 +27,6 @@ smtp_authentication: 'plain' # 'plain', 'login', 'cram_md5' # app_name: '.EE Registry' zonefile_export_dir: 'export/zonefiles' -bank_statement_import_dir: 'import/bank_statements' legal_documents_dir: 'import/legal_documents' time_zone: 'Tallinn' # more zones by rake time:zones:all diff --git a/db/migrate/20200908131554_remove_import_file_path_from_bank_statements.rb b/db/migrate/20200908131554_remove_import_file_path_from_bank_statements.rb new file mode 100644 index 000000000..a80a1e5a5 --- /dev/null +++ b/db/migrate/20200908131554_remove_import_file_path_from_bank_statements.rb @@ -0,0 +1,9 @@ +class RemoveImportFilePathFromBankStatements < ActiveRecord::Migration[6.0] + def up + remove_column :bank_statements, :import_file_path + end + + def down + add_column :bank_statements, :import_file_path, :string + end +end diff --git a/db/structure.sql b/db/structure.sql index 6224671ad..1e32bf318 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -371,7 +371,6 @@ CREATE TABLE public.bank_statements ( id integer NOT NULL, bank_code character varying, iban character varying, - import_file_path character varying, queried_at timestamp without time zone, created_at timestamp without time zone, updated_at timestamp without time zone, @@ -4850,4 +4849,7 @@ INSERT INTO "schema_migrations" (version) VALUES ('20200807110611'), ('20200811074839'), ('20200812090409'), -('20200812125810'); +('20200812125810'), +('20200908131554'); + +