mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-05 13:35:21 +02:00
Remove missing prices issue (#1390)
This commit is contained in:
parent
7d8028b505
commit
bf695972e4
8 changed files with 11 additions and 114 deletions
9
db/migrate/20241029184115_remove_prices_missing_issue.rb
Normal file
9
db/migrate/20241029184115_remove_prices_missing_issue.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
class RemovePricesMissingIssue < ActiveRecord::Migration[7.2]
|
||||
def up
|
||||
execute "DELETE FROM issues WHERE type = 'Issue::PricesMissing'"
|
||||
end
|
||||
|
||||
def down
|
||||
# Cannot restore deleted issues since we don't have the original data
|
||||
end
|
||||
end
|
4
db/schema.rb
generated
4
db/schema.rb
generated
|
@ -10,7 +10,7 @@
|
|||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_10_25_182612) do
|
||||
ActiveRecord::Schema[7.2].define(version: 2024_10_29_184115) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pgcrypto"
|
||||
enable_extension "plpgsql"
|
||||
|
@ -119,7 +119,7 @@ ActiveRecord::Schema[7.2].define(version: 2024_10_25_182612) do
|
|||
t.boolean "is_active", default: true, null: false
|
||||
t.date "last_sync_date"
|
||||
t.uuid "institution_id"
|
||||
t.virtual "classification", type: :string, as: "\nCASE\n WHEN ((accountable_type)::text = ANY (ARRAY[('Loan'::character varying)::text, ('CreditCard'::character varying)::text, ('OtherLiability'::character varying)::text])) THEN 'liability'::text\n ELSE 'asset'::text\nEND", stored: true
|
||||
t.virtual "classification", type: :string, as: "\nCASE\n WHEN ((accountable_type)::text = ANY ((ARRAY['Loan'::character varying, 'CreditCard'::character varying, 'OtherLiability'::character varying])::text[])) THEN 'liability'::text\n ELSE 'asset'::text\nEND", stored: true
|
||||
t.uuid "import_id"
|
||||
t.string "mode"
|
||||
t.index ["accountable_id", "accountable_type"], name: "index_accounts_on_accountable_id_and_accountable_type"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue