Add transaction sidebar (#534)

* Create sidebar element and working with turbo

* Add overview fields

* Add columns to transations and tidy modal

* permit new transaction params

* Add autosubmit form controller

* remove unused show code
This commit is contained in:
Cristiano Crolla
2024-03-10 21:38:31 +00:00
committed by GitHub
parent 9c9459211f
commit 7f2633f9da
9 changed files with 134 additions and 15 deletions

View File

@@ -0,0 +1,6 @@
class AddNotesAndExcludedToTransaction < ActiveRecord::Migration[7.2]
def change
add_column :transactions, :excluded, :boolean, default: false
add_column :transactions, :notes, :text
end
end

4
db/schema.rb generated
View File

@@ -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_03_07_082827) do
ActiveRecord::Schema[7.2].define(version: 2024_03_08_214956) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@@ -217,6 +217,8 @@ ActiveRecord::Schema[7.2].define(version: 2024_03_07_082827) do
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.uuid "category_id"
t.boolean "excluded", default: false
t.text "notes"
t.index ["account_id"], name: "index_transactions_on_account_id"
t.index ["category_id"], name: "index_transactions_on_category_id"
end