hensei-api/db/migrate/20251204070958_create_gw_events.rb
Justin Edmund f2a058b6b2 add GW events and scoring system
- create gw_events, crew_gw_participations, gw_crew_scores, gw_individual_scores
- add models, blueprints, controllers for GW tracking
- add model specs and gw_events controller specs

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-03 23:34:54 -08:00

18 lines
462 B
Ruby

# frozen_string_literal: true
class CreateGwEvents < ActiveRecord::Migration[8.0]
def change
create_table :gw_events, id: :uuid do |t|
t.string :name, null: false
t.integer :element, null: false
t.date :start_date, null: false
t.date :end_date, null: false
t.integer :event_number, null: false
t.timestamps
end
add_index :gw_events, :event_number, unique: true
add_index :gw_events, :start_date
end
end