Skip to content

Commit

Permalink
EDM-653/lcpe cache migrations (#1315)
Browse files Browse the repository at this point in the history
* Migrations

* schema
  • Loading branch information
jefftmarks authored Feb 19, 2025
1 parent 3fc6221 commit a061f73
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 2 deletions.
10 changes: 10 additions & 0 deletions db/migrate/20250217143034_create_lcpe_preload_datasets.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class CreateLcpePreloadDatasets < ActiveRecord::Migration[7.1]
def change
create_table :lcpe_preload_datasets do |t|
t.text :body
t.string :subject_class

t.timestamps
end
end
end
6 changes: 6 additions & 0 deletions db/migrate/20250217143740_rename_blob_on_upload.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
class RenameBlobOnUpload < ActiveRecord::Migration[7.1]
def change
safety_assured { remove_column :uploads, :blob }
add_column :uploads, :body, :text
end
end
11 changes: 9 additions & 2 deletions 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_02_03_183542) do
ActiveRecord::Schema[7.1].define(version: 2025_02_17_143740) do
# These are extensions that must be enabled in order to support this database
enable_extension "cube"
enable_extension "earthdistance"
Expand Down Expand Up @@ -1438,6 +1438,13 @@
t.string "state"
end

create_table "lcpe_preload_datasets", force: :cascade do |t|
t.text "body"
t.string "subject_class"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "mous", id: :serial, force: :cascade do |t|
t.string "ope", null: false
t.string "ope6", null: false
Expand Down Expand Up @@ -1752,10 +1759,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.text "body"
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 a061f73

Please sign in to comment.