Remove "save as draft"

Removes the creating status completely as well as the abandoned cards system. It will
always resume drafts if they exist, for a given collection and user.

https://app.box-car.com/5986089/cards/2489
This commit is contained in:
Jorge Manrubia
2025-11-02 11:20:16 +01:00
parent efd5c1dba2
commit 9d4dd3b00e
19 changed files with 35 additions and 125 deletions
@@ -0,0 +1,5 @@
class ChangeCardsStatusDefaultToDrafted < ActiveRecord::Migration[8.2]
def change
change_column_default :cards, :status, from: "creating", to: "drafted"
end
end
Generated
+1 -1
View File
@@ -144,7 +144,7 @@ ActiveRecord::Schema[8.2].define(version: 2025_11_02_115338) do
t.integer "creator_id", null: false
t.date "due_on"
t.datetime "last_active_at", null: false
t.text "status", default: "creating", null: false
t.text "status", default: "drafted", null: false
t.string "title"
t.datetime "updated_at", null: false
t.index ["collection_id"], name: "index_cards_on_collection_id"
+1 -1
View File
@@ -496,7 +496,7 @@ columns:
cast_type: *15
sql_type_metadata: *16
'null': false
default: creating
default: drafted
default_function:
collation:
comment: