wedding-planner/db/migrate/20241130182228_create_weddings.rb
Manuel Bustillo 24c39f331a
All checks were successful
Check usage of free licenses / check-licenses (pull_request) Successful in 1m6s
Add copyright notice / copyright_notice (pull_request) Successful in 1m53s
Run unit tests / unit_tests (pull_request) Successful in 4m17s
Define a simple wedding model
2024-11-30 19:30:04 +01:00

11 lines
239 B
Ruby

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