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

13 lines
277 B
Ruby
Raw Permalink Normal View History

2024-11-30 18:31:48 +00:00
# Copyright (C) 2024 Manuel Bustillo
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