Browse Source

remove un-needed db columns

bulk-upload-resume
Phil Lee 2 years ago
parent
commit
7290e8d1e2
  1. 8
      db/migrate/20230330151110_remove_unused_bulk_upload_fields.rb
  2. 4
      db/schema.rb

8
db/migrate/20230330151110_remove_unused_bulk_upload_fields.rb

@ -0,0 +1,8 @@
class RemoveUnusedBulkUploadFields < ActiveRecord::Migration[7.0]
def change
change_table :bulk_uploads, bulk: true do |t|
t.remove :processed, type: :boolean
t.remove :expected_log_count, type: :integer
end
end
end

4
db/schema.rb

@ -10,7 +10,7 @@
# #
# It's strongly recommended that you check this file into your version control system. # It's strongly recommended that you check this file into your version control system.
ActiveRecord::Schema[7.0].define(version: 2023_03_29_091101) do ActiveRecord::Schema[7.0].define(version: 2023_03_30_151110) do
# These are extensions that must be enabled in order to support this database # These are extensions that must be enabled in order to support this database
enable_extension "plpgsql" enable_extension "plpgsql"
@ -39,8 +39,6 @@ ActiveRecord::Schema[7.0].define(version: 2023_03_29_091101) do
t.datetime "updated_at", null: false t.datetime "updated_at", null: false
t.text "filename" t.text "filename"
t.integer "needstype" t.integer "needstype"
t.integer "expected_log_count"
t.boolean "processed", default: false
t.index ["identifier"], name: "index_bulk_uploads_on_identifier", unique: true t.index ["identifier"], name: "index_bulk_uploads_on_identifier", unique: true
t.index ["user_id"], name: "index_bulk_uploads_on_user_id" t.index ["user_id"], name: "index_bulk_uploads_on_user_id"
end end

Loading…
Cancel
Save