Skip to content

Commit

Permalink
WIP: fix db seeds
Browse files Browse the repository at this point in the history
  • Loading branch information
fcd1 committed Jan 23, 2025
1 parent 2fa9da3 commit 75af97a
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions db/seeds.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,26 +23,3 @@
password: info[:password],
password_confirmation: info[:password])
end

collections = {}
SEEDS_CONFIG[:collections].each do |key, info|
collections[key] = Collection.create(name: info[:name],
slug: info[:slug],
atom_title: info[:atom_title],
hyacinth_project_string_key: info[:hyacinth_project_string_key],
parser: info[:parser])
end

depositors = {}
SEEDS_CONFIG[:depositors].each do |key, info|
depositors[key] = Depositor.create(name: info[:name],
basic_authentication_user_id: info[:basic_authentication_user_id],
password: info[:password],
password_confirmation: info[:password_confirmation])
end

SEEDS_CONFIG[:depositor_collection_pairings].each do |key, info|
depositors[info[:depositor]].collections << collections[info[:collection]]
end


0 comments on commit 75af97a

Please sign in to comment.