mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
fix migration and add smoke test for migrations (#438)
* adds a smoke test in the CI for the migration * add back money rails gem * really remove money-rails * update the migration to remove add_monetize
This commit is contained in:
parent
c483153721
commit
d3151be9ae
2 changed files with 8 additions and 2 deletions
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
|
@ -3,7 +3,7 @@ name: CI
|
|||
on:
|
||||
pull_request:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
scan_ruby:
|
||||
|
@ -92,6 +92,12 @@ jobs:
|
|||
# REDIS_URL: redis://localhost:6379/0
|
||||
run: bin/rails db:setup test test:system
|
||||
|
||||
- name: Smoke test database seeds
|
||||
env:
|
||||
RAILS_ENV: test
|
||||
DATABASE_URL: postgres://postgres:postgres@localhost:5432
|
||||
run: bin/rails db:reset
|
||||
|
||||
- name: Keep screenshots from failed system tests
|
||||
uses: actions/upload-artifact@v4
|
||||
if: failure()
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
class ReplaceMoneyField < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_monetize :accounts, :balance
|
||||
add_column :accounts, :balance_cents
|
||||
change_column :accounts, :balance_cents, :integer, limit: 8
|
||||
|
||||
Account.reset_column_information
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue