LancePants97 / market_money_2405

1 stars 0 forks source link

Set Up Seeds File #3

Closed LancePants97 closed 3 months ago

LancePants97 commented 3 months ago

H2 Add this to db/seeds.rb

cmd = "pg_restore --verbose --clean --no-acl --no-owner -h localhost -U $(whoami) -d market_money_development db/data/market_money_development.pgdump" puts "Loading PostgreSQL Data dump into local database with command:" puts cmd system(cmd)