wedding-planner/db/migrate/20241130182228_create_weddings.rb

13 lines
299 B
Ruby
Raw Normal View History

2025-01-23 21:34:23 +00:00
# Copyright (C) 2024-2025 LibreWeddingPlanner contributors
2024-11-30 19:24:59 +01:00
class CreateWeddings < ActiveRecord::Migration[8.0]
def change
create_table :weddings, id: :uuid do |t|
t.string :slug, null: false, index: { unique: true }
t.date :date, null: false
t.timestamps
end
end
end