The personal finance app for everyone
Update database migrations and strengthen db smoke tests (#462)
Adrien Poly093ddba28f43
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 9d92bb91..a78dd2a7 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -96,7 +96,7 @@ jobs:env:RAILS_ENV: testDATABASE_URL: postgres://postgres:postgres@localhost:5432- run: bin/rails db:reset+ run: bin/rails db:drop db:create db:migrate db:seed- name: Keep screenshots from failed system testsuses: actions/upload-artifact@v4diff --git a/db/migrate/20240206031739_replace_money_field.rb b/db/migrate/20240206031739_replace_money_field.rbindex 48e4d188..c89c2cb9 100644--- a/db/migrate/20240206031739_replace_money_field.rb+++ b/db/migrate/20240206031739_replace_money_field.rb@@ -1,6 +1,6 @@class ReplaceMoneyField < ActiveRecord::Migration[7.2]def change- add_column :accounts, :balance_cents+ add_column :accounts, :balance_cents, :integerchange_column :accounts, :balance_cents, :integer, limit: 8Account.reset_column_informationdiff --git a/db/migrate/20240209174912_redo_money_storage.rb b/db/migrate/20240209174912_redo_money_storage.rbindex 8550373c..19255c47 100644--- a/db/migrate/20240209174912_redo_money_storage.rb+++ b/db/migrate/20240209174912_redo_money_storage.rb@@ -6,7 +6,6 @@ class RedoMoneyStorage < ActiveRecord::Migration[7.2]add_column :accounts, :converted_currency, :string, default: "USD"remove_column :accounts, :balance_cents- remove_column :accounts, :balance_currencyremove_column :accounts, :currencyendend