feat: implement dynamic event display with party images and seed data

• Files changed: app/controllers/pages_controller.rb, app/models/party.rb, app/views/pages/home.html.erb, db/migrate/20250823145902_create_parties.rb, db/schema.rb, db/seeds.rb
• Nature of changes: Added image support to parties, updated homepage to dynamically display parties, enhanced seed data with parties and ticket types, schema updates for foreign keys
• Purpose: Enable dynamic event display on homepage with real data instead of static placeholders, add image support for parties, improve database relationships
• Impact: Homepage now shows real party data from database, parties can have images, database schema improved with proper foreign keys
• Commit message: feat: implement dynamic event display with party images and seed data
This commit is contained in:
kbe
2025-08-25 03:39:20 +02:00
parent 632055c44d
commit 6fbd24e36e
8 changed files with 798 additions and 68 deletions

View File

@@ -2,6 +2,7 @@ class CreateParties < ActiveRecord::Migration[8.0]
def change
create_table :parties do |t|
t.string :name, null: false
t.string :image, null: true
t.text :description, null: false
t.integer :state, default: 0, null: false
t.string :venue_name, null: false