Define a new column to store the digest of the list of guests included in a simulation
Some checks failed
Run unit tests / check-licenses (pull_request) Successful in 43s
Run unit tests / rubocop (pull_request) Successful in 1m5s
Run unit tests / copyright_notice (pull_request) Successful in 1m7s
Run unit tests / unit_tests (pull_request) Successful in 3m6s
Run unit tests / build-static-assets (pull_request) Has been cancelled
Some checks failed
Run unit tests / check-licenses (pull_request) Successful in 43s
Run unit tests / rubocop (pull_request) Successful in 1m5s
Run unit tests / copyright_notice (pull_request) Successful in 1m7s
Run unit tests / unit_tests (pull_request) Successful in 3m6s
Run unit tests / build-static-assets (pull_request) Has been cancelled
This commit is contained in:
parent
f414acb2d5
commit
d1a351ffec
@ -6,12 +6,13 @@
|
||||
#
|
||||
# Table name: tables_arrangements
|
||||
#
|
||||
# id :uuid not null, primary key
|
||||
# discomfort :integer
|
||||
# name :string not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# wedding_id :uuid not null
|
||||
# id :uuid not null, primary key
|
||||
# discomfort :integer
|
||||
# guests_digest :uuid not null
|
||||
# name :string not null
|
||||
# created_at :datetime not null
|
||||
# updated_at :datetime not null
|
||||
# wedding_id :uuid not null
|
||||
#
|
||||
# Indexes
|
||||
#
|
||||
|
@ -0,0 +1,5 @@
|
||||
class AddGuestsDigestColumnToTablesArrangements < ActiveRecord::Migration[8.0]
|
||||
def change
|
||||
add_column :tables_arrangements, :guests_digest, :uuid, null: false, default: 'gen_random_uuid()'
|
||||
end
|
||||
end
|
3
db/schema.rb
generated
3
db/schema.rb
generated
@ -10,7 +10,7 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[8.0].define(version: 2024_12_16_231415) do
|
||||
ActiveRecord::Schema[8.0].define(version: 2025_01_26_091823) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "pg_catalog.plpgsql"
|
||||
|
||||
@ -206,6 +206,7 @@ ActiveRecord::Schema[8.0].define(version: 2024_12_16_231415) do
|
||||
t.datetime "updated_at", null: false
|
||||
t.string "name", null: false
|
||||
t.uuid "wedding_id", null: false
|
||||
t.uuid "guests_digest", default: -> { "gen_random_uuid()" }, null: false
|
||||
t.index ["wedding_id"], name: "index_tables_arrangements_on_wedding_id"
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user