Add extra bills tracking
This commit is contained in:
parent
a21639ff6f
commit
63487a9cba
22 changed files with 353 additions and 3 deletions
11
db/migrate/20230224232804_create_extra_bills.rb
Normal file
11
db/migrate/20230224232804_create_extra_bills.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateExtraBills < ActiveRecord::Migration[7.0]
|
||||
def change
|
||||
create_table :extra_bills do |t|
|
||||
t.string :description
|
||||
t.decimal :amount
|
||||
t.boolean :deduct_autopaid
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
10
db/schema.rb
generated
10
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.0].define(version: 2022_11_20_205511) do
|
||||
ActiveRecord::Schema[7.0].define(version: 2023_02_24_232804) do
|
||||
create_table "expenses", force: :cascade do |t|
|
||||
t.string "description", default: "", null: false
|
||||
t.decimal "payment", precision: 8, scale: 2, default: "0.0", null: false
|
||||
|
@ -21,6 +21,14 @@ ActiveRecord::Schema[7.0].define(version: 2022_11_20_205511) do
|
|||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "extra_bills", force: :cascade do |t|
|
||||
t.string "description"
|
||||
t.decimal "amount"
|
||||
t.boolean "deduct_autopaid"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
end
|
||||
|
||||
create_table "incomes", force: :cascade do |t|
|
||||
t.string "description", default: "", null: false
|
||||
t.boolean "included", default: true, null: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue