integration of the new MVC for subproject_addresses

This commit is contained in:
Stefan Tollkühn
2025-07-22 17:33:53 +02:00
parent bae8b9318d
commit bc0df35259
11 changed files with 176 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
class CreateSubprojectAddresses < ActiveRecord::Migration[8.0]
def change
create_table :subproject_addresses do |t|
t.string :streetname
t.string :zipcode
t.string :city
t.string :country
t.text :notes
t.timestamps
end
end
end

12
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[8.0].define(version: 2025_07_21_145904) do
ActiveRecord::Schema[8.0].define(version: 2025_07_22_152542) do
create_table "clients", force: :cascade do |t|
t.string "company_name"
t.string "firstname"
@@ -36,6 +36,16 @@ ActiveRecord::Schema[8.0].define(version: 2025_07_21_145904) do
t.datetime "order_date"
end
create_table "subproject_addresses", force: :cascade do |t|
t.string "streetname"
t.string "zipcode"
t.string "city"
t.string "country"
t.text "notes"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end
create_table "subprojects", force: :cascade do |t|
t.string "subproject_name"
t.integer "project_id", null: false