Skip to content

Commit

Permalink
Adds db migration and dev seeds for uni_upd_mhld_errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Sep 4, 2018
1 parent baccd0b commit 80162f7
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 2 deletions.
13 changes: 13 additions & 0 deletions db/migrate/20180830220045_create_uni_upd_mhld_errors.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
class CreateUniUpdMhldErrors < ActiveRecord::Migration
def change
create_table :uni_upd_mhld_errors do |t|
t.integer :batch_id
t.string :flex
t.string :err_msg
t.string :format
t.string :old_lib
t.string :new_lib
t.string :new_loc
end
end
end
62 changes: 60 additions & 2 deletions db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema.define(version: 20180727193130) do
ActiveRecord::Schema.define(version: 20180830220045) do

create_table "authorized_user", force: :cascade do |t|
t.string "user_id"
Expand All @@ -37,6 +37,7 @@
t.string "digital_bookplates"
t.string "edi_inv_manage"
t.string "edi_inv_view"
t.string "package_manage"
end

create_table "catnums", force: :cascade do |t|
Expand Down Expand Up @@ -355,7 +356,6 @@
t.datetime "last_action_date"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
t.string "bc_file_obj"
end

create_table "sal3_batch_requests_bcs", force: :cascade do |t|
Expand Down Expand Up @@ -409,6 +409,16 @@
t.string "home_loc"
end

create_table "uni_upd_mhld_errors", force: :cascade do |t|
t.integer "batch_id"
t.string "flex"
t.string "err_msg"
t.string "format"
t.string "old_lib"
t.string "new_lib"
t.string "new_loc"
end

create_table "uni_updates", force: :cascade do |t|
t.integer "batch_id"
t.string "pending"
Expand Down Expand Up @@ -471,4 +481,52 @@
t.datetime "updated_at", null: false
end

create_table "url_exclusions", force: :cascade do |t|
t.string "url_substring"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

create_table "vnd_packages", primary_key: "record_id", force: :cascade do |t|
t.string "package_id"
t.string "package_name"
t.string "package_status"
t.string "data_pickup_type"
t.string "afs_path"
t.string "ftp_server"
t.string "ftp_user"
t.string "ftp_password"
t.string "ftp_directory"
t.string "ftp_file_prefix"
t.string "ftp_list_type"
t.string "package_url"
t.datetime "date_entered"
t.string "vendor_name"
t.string "holding_code"
t.string "comments"
t.datetime "date_modified"
t.string "put_file_loc"
t.string "afs_search_string"
t.string "url_field"
t.string "vendor_id_read"
t.string "vendor_id_write"
t.string "access_note"
t.string "export_note"
t.string "junktag_file"
t.string "encoding_level"
t.string "vnd_catcode"
t.string "match_opts"
t.string "proc_type"
t.string "update_040"
t.string "rpt_mail"
t.string "access_urls_plats"
t.string "date_cat"
t.string "export_auth"
t.string "preprocess_modify_script"
t.string "preprocess_split_script"
t.string "preprocess_put_script"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
end

end
2 changes: 2 additions & 0 deletions db/seeds/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ def make_table(model, file, keys)
model.create(hash)
end

make_table(UniUpdatesBatch, 'uni_updates_batch.csv', %w[batch_id batch_date user_name user_email action priority export_yn check_bc_first orig_lib new_lib new_homeloc new_curloc new_itype total_bcs pending comments num_errors])
make_table(UniUpdMhldError, 'uni_upd_mhld_errors.csv', %w[batch_id flex err_msg format old_lib new_lib new_loc])
make_table(EdiSumrzBib, 'edi_sumrz_bib.csv', %w[vend_code id001 edi_ckey load_date active_record])
make_table(EdiErrorReport, 'edi_error_report.csv', %w[run type error err_lvl])
make_table(EdiInvPiece, 'edi_inv_piece.csv', %w[edi_vend_id edi_doc_num])
Expand Down

0 comments on commit 80162f7

Please sign in to comment.