Add a new status column to tables arrangements table
This commit is contained in:
parent
8662652e1a
commit
75a0191d40
@ -10,6 +10,7 @@
|
|||||||
# digest :uuid not null
|
# digest :uuid not null
|
||||||
# discomfort :integer
|
# discomfort :integer
|
||||||
# name :string not null
|
# name :string not null
|
||||||
|
# status :string default("complete"), not null
|
||||||
# created_at :datetime not null
|
# created_at :datetime not null
|
||||||
# updated_at :datetime not null
|
# updated_at :datetime not null
|
||||||
# wedding_id :uuid not null
|
# wedding_id :uuid not null
|
||||||
|
@ -0,0 +1,5 @@
|
|||||||
|
class AddStatusColumnToTablesArrangements < ActiveRecord::Migration[8.0]
|
||||||
|
def change
|
||||||
|
add_column :tables_arrangements, :status, :string, default: :complete, null: false
|
||||||
|
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.
|
# It's strongly recommended that you check this file into your version control system.
|
||||||
|
|
||||||
ActiveRecord::Schema[8.0].define(version: 2025_06_08_181054) do
|
ActiveRecord::Schema[8.0].define(version: 2025_08_01_102437) do
|
||||||
# These are extensions that must be enabled in order to support this database
|
# These are extensions that must be enabled in order to support this database
|
||||||
enable_extension "pg_catalog.plpgsql"
|
enable_extension "pg_catalog.plpgsql"
|
||||||
|
|
||||||
@ -216,6 +216,7 @@ ActiveRecord::Schema[8.0].define(version: 2025_06_08_181054) do
|
|||||||
t.string "name", null: false
|
t.string "name", null: false
|
||||||
t.uuid "wedding_id", null: false
|
t.uuid "wedding_id", null: false
|
||||||
t.uuid "digest", default: -> { "gen_random_uuid()" }, null: false
|
t.uuid "digest", default: -> { "gen_random_uuid()" }, null: false
|
||||||
|
t.string "status", default: "complete", null: false
|
||||||
t.index ["wedding_id"], name: "index_tables_arrangements_on_wedding_id"
|
t.index ["wedding_id"], name: "index_tables_arrangements_on_wedding_id"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user