Flesh out work items in the UI
Build and Publish Docker Container / build (push) Successful in 5m43s

This commit is contained in:
2023-10-08 16:06:07 +01:00
parent f9f4762450
commit c8b688ce57
14 changed files with 123 additions and 36 deletions
@@ -0,0 +1,6 @@
class RenameWorkItemColumns < ActiveRecord::Migration[7.1]
def change
rename_column :work_items, :start_time, :available_from
rename_column :work_items, :due_date, :due_at
end
end
@@ -0,0 +1,5 @@
class AddCompletionTimeToWorkItem < ActiveRecord::Migration[7.1]
def change
add_column :work_items, :completed_at, :datetime
end
end
Generated
+4 -3
View File
@@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.1].define(version: 2023_10_08_143146) do
ActiveRecord::Schema[7.1].define(version: 2023_10_08_145328) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -64,10 +64,11 @@ ActiveRecord::Schema[7.1].define(version: 2023_10_08_143146) do
create_table "work_items", force: :cascade do |t|
t.string "title", null: false
t.bigint "course_id", null: false
t.datetime "due_date", null: false
t.datetime "due_at", null: false
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.datetime "start_time"
t.datetime "available_from"
t.datetime "completed_at"
t.index ["course_id"], name: "index_work_items_on_course_id"
end