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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user