Skip to content

Commit a061f73

Browse files
authored
EDM-653/lcpe cache migrations (#1315)
* Migrations * schema
1 parent 3fc6221 commit a061f73

File tree

3 files changed

+25
-2
lines changed

3 files changed

+25
-2
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
class CreateLcpePreloadDatasets < ActiveRecord::Migration[7.1]
2+
def change
3+
create_table :lcpe_preload_datasets do |t|
4+
t.text :body
5+
t.string :subject_class
6+
7+
t.timestamps
8+
end
9+
end
10+
end
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
class RenameBlobOnUpload < ActiveRecord::Migration[7.1]
2+
def change
3+
safety_assured { remove_column :uploads, :blob }
4+
add_column :uploads, :body, :text
5+
end
6+
end

db/schema.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# It's strongly recommended that you check this file into your version control system.
1212

13-
ActiveRecord::Schema[7.1].define(version: 2025_02_03_183542) do
13+
ActiveRecord::Schema[7.1].define(version: 2025_02_17_143740) do
1414
# These are extensions that must be enabled in order to support this database
1515
enable_extension "cube"
1616
enable_extension "earthdistance"
@@ -1438,6 +1438,13 @@
14381438
t.string "state"
14391439
end
14401440

1441+
create_table "lcpe_preload_datasets", force: :cascade do |t|
1442+
t.text "body"
1443+
t.string "subject_class"
1444+
t.datetime "created_at", null: false
1445+
t.datetime "updated_at", null: false
1446+
end
1447+
14411448
create_table "mous", id: :serial, force: :cascade do |t|
14421449
t.string "ope", null: false
14431450
t.string "ope6", null: false
@@ -1752,10 +1759,10 @@
17521759
t.datetime "updated_at", precision: nil, null: false
17531760
t.datetime "completed_at", precision: nil
17541761
t.boolean "multiple_file_upload", default: false
1755-
t.string "blob"
17561762
t.string "status_message"
17571763
t.datetime "queued_at", precision: nil
17581764
t.datetime "canceled_at", precision: nil
1765+
t.text "body"
17591766
t.index ["csv_type"], name: "index_uploads_on_csv_type"
17601767
t.index ["updated_at"], name: "index_uploads_on_updated_at"
17611768
t.index ["user_id"], name: "index_uploads_on_user_id"

0 commit comments

Comments
 (0)