Skip to content

Commit

Permalink
EDM-480-499/async-upload-migrations (#1305)
Browse files Browse the repository at this point in the history
* Create migration

* run migration

* add period

* Remove period
  • Loading branch information
jefftmarks authored Feb 4, 2025
1 parent b21bdb8 commit f38a3c8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions db/migrate/20250203183542_add_columns_to_uploads.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
class AddColumnsToUploads < ActiveRecord::Migration[7.1]
def change
add_column :uploads, :blob, :string
add_column :uploads, :status_message, :string
add_column :uploads, :queued_at, :datetime, precision: nil
add_column :uploads, :canceled_at, :datetime, precision: nil
end
end
6 changes: 5 additions & 1 deletion db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.1].define(version: 2025_01_27_081700) do
ActiveRecord::Schema[7.1].define(version: 2025_02_03_183542) do
# These are extensions that must be enabled in order to support this database
enable_extension "cube"
enable_extension "earthdistance"
Expand Down Expand Up @@ -1752,6 +1752,10 @@
t.datetime "updated_at", precision: nil, null: false
t.datetime "completed_at", precision: nil
t.boolean "multiple_file_upload", default: false
t.string "blob"
t.string "status_message"
t.datetime "queued_at", precision: nil
t.datetime "canceled_at", precision: nil
t.index ["csv_type"], name: "index_uploads_on_csv_type"
t.index ["updated_at"], name: "index_uploads_on_updated_at"
t.index ["user_id"], name: "index_uploads_on_user_id"
Expand Down

0 comments on commit f38a3c8

Please sign in to comment.