Remove attendances model
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
class DeleteAttendances < ActiveRecord::Migration[7.1]
|
||||
def change
|
||||
drop_table :attendances
|
||||
end
|
||||
end
|
||||
Generated
+1
-12
@@ -10,20 +10,10 @@
|
||||
#
|
||||
# It's strongly recommended that you check this file into your version control system.
|
||||
|
||||
ActiveRecord::Schema[7.1].define(version: 2023_10_06_204103) do
|
||||
ActiveRecord::Schema[7.1].define(version: 2023_10_06_210710) do
|
||||
# These are extensions that must be enabled in order to support this database
|
||||
enable_extension "plpgsql"
|
||||
|
||||
create_table "attendances", force: :cascade do |t|
|
||||
t.bigint "lecture_id", null: false
|
||||
t.string "associated_toggl_entry"
|
||||
t.integer "kind"
|
||||
t.datetime "created_at", null: false
|
||||
t.datetime "updated_at", null: false
|
||||
t.jsonb "toggl_data"
|
||||
t.index ["lecture_id"], name: "index_attendances_on_lecture_id"
|
||||
end
|
||||
|
||||
create_table "courses", force: :cascade do |t|
|
||||
t.string "title"
|
||||
t.string "unit_code"
|
||||
@@ -70,7 +60,6 @@ ActiveRecord::Schema[7.1].define(version: 2023_10_06_204103) do
|
||||
t.index ["lecture_id"], name: "index_tracked_time_entries_on_lecture_id"
|
||||
end
|
||||
|
||||
add_foreign_key "attendances", "lectures"
|
||||
add_foreign_key "recordings", "courses"
|
||||
add_foreign_key "tracked_time_entries", "lectures"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user