Initialer Wagon hitobito_kjv 🤖
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
d3b74c9030
30 changed files with 1346 additions and 0 deletions
18
db/migrate/20261007120000_add_kjv_fields_to_people.rb
Normal file
18
db/migrate/20261007120000_add_kjv_fields_to_people.rb
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
# Copyright (c) 2026, Kreisjagdverband Bautzen e.V. This file is part of
|
||||
# hitobito_kjv and licensed under the Affero General Public License version 3
|
||||
# or later. See the COPYING file at the top-level directory.
|
||||
|
||||
# Rein additiv: nur neue, leere Spalten, bestehende Daten bleiben unverändert.
|
||||
class AddKjvFieldsToPeople < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
# Text statt Zahl, damit führende Nullen erhalten bleiben.
|
||||
add_column :people, :ljv_membership_number, :string
|
||||
add_column :people, :hunter_since, :date
|
||||
add_column :people, :joined_on, :date
|
||||
|
||||
add_index :people, :ljv_membership_number, unique: true,
|
||||
where: "ljv_membership_number IS NOT NULL"
|
||||
end
|
||||
end
|
||||
0
db/seeds/.keep
Normal file
0
db/seeds/.keep
Normal file
Loading…
Add table
Add a link
Reference in a new issue