1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-08-04 21:15:19 +02:00

Add Property Details View (#1116)

* Add backend for property account details

* Rubocop updates

* Add property form with details

* Revert "Rubocop updates"

This reverts commit 05b0b8f3a4.

* Bump brakeman to latest version

* Add overview section to property view

* Lint fixes
This commit is contained in:
Zach Gollwitzer 2024-08-23 08:47:08 -04:00 committed by GitHub
parent 4433488562
commit e856691c86
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
30 changed files with 547 additions and 81 deletions

View file

@ -0,0 +1,16 @@
class CreateAddresses < ActiveRecord::Migration[7.2]
def change
create_table :addresses, id: :uuid do |t|
t.references :addressable, type: :uuid, polymorphic: true
t.string :line1
t.string :line2
t.string :county
t.string :locality
t.string :region
t.string :country
t.integer :postal_code
t.timestamps
end
end
end

View file

@ -0,0 +1,7 @@
class AddPropertyAttributes < ActiveRecord::Migration[7.2]
def change
add_column :properties, :year_built, :integer
add_column :properties, :area_value, :integer
add_column :properties, :area_unit, :string
end
end

20
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_08_17_144454) do
ActiveRecord::Schema[7.2].define(version: 2024_08_22_180845) do
# These are extensions that must be enabled in order to support this database
enable_extension "pgcrypto"
enable_extension "plpgsql"
@ -152,6 +152,21 @@ ActiveRecord::Schema[7.2].define(version: 2024_08_17_144454) do
t.index ["blob_id", "variation_digest"], name: "index_active_storage_variant_records_uniqueness", unique: true
end
create_table "addresses", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "addressable_type"
t.uuid "addressable_id"
t.string "line1"
t.string "line2"
t.string "county"
t.string "locality"
t.string "region"
t.string "country"
t.integer "postal_code"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.index ["addressable_type", "addressable_id"], name: "index_addresses_on_addressable"
end
create_table "categories", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.string "name", null: false
t.string "color", default: "#6172F3", null: false
@ -358,6 +373,9 @@ ActiveRecord::Schema[7.2].define(version: 2024_08_17_144454) do
create_table "properties", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.integer "year_built"
t.integer "area_value"
t.string "area_unit"
end
create_table "securities", id: :uuid, default: -> { "gen_random_uuid()" }, force: :cascade do |t|